- 3
Drag and drop from the options below to update the ''people'' table.
UPDATE people SET name='Jordan' WHERE id=147;
10 Answers
0
Order the process through which data makes its way from a service to an HTML view:
component makes a call to a service requesting data
service receives call from component and collects data
service sends data to component
component passes data to view
view receives data
view iterates through the data using *ngFor
+ 3
Jason Chew
You have posted many threads and apparently answer them by yourself. I don't mind if you're into a badge or something, but can you please keep the noise to the minimum?
+ 3
you are not supposed to answer your question ,Q&A literally doesn't mean you write question with an answer to them as well,it's for asking doubts you have related to programming in hope someone has an answer to it ,however if you don't get answer to a real queries for some hours you can update your question to add the answer,so hopefully you will delete all these self answered questions.
+ 2
Hi Abhay and Ipang, thank you for your comment. I am trying to learn as much as possible as I felt I am lacking a lot of vital skills for a living. Thanks for your understanding.
+ 1
Declare a string type variable named user with a value of Samson.
Answer:
let user : string = 'Samson';
+ 1
Complete the Angular code below in the html file to use indices in the *ngFor loop.
<div *ngFor='let student of students;
let j = index
>
Student {{ j }}, whose name is {{ student }}, is in class.
</div>
+ 1
A user clicks on a button and receives a list of evening gowns. Arrange the journey of data of evening gowns after these initial three steps:
⢠Database query is performed
⢠Database delivers query results to server
⢠Server processes and formats evening gown data
Server sends JSON of gowns to front-end
Angular service receives gowns
Angular component receives gowns
Angular view receives gowns
0
Implement dependency injection by injecting the users service into the school component.
import { Component } from '@angular/core';
import { UserService } from './users.service';
import { User } from './user';
export class AppComponent {
users: User[ ];
constructor (private userService:
UserService) {
this.users = this.userService.getUsers();
}
}
0
The button will double an integer every time the button is pressed. Complete the code.
COMPONENT
counter = 1;
double() {
this.counter*=2;
}
VIEW
{{counter}}
<button (click) = "double()" > double the number </button>
0
Rearrange the events in the order that they appear.
user clicks a button to add new data to an array
event is triggered in component that sends data to the service
service receives message and adds an item to its array
service returns array to component
component displays updated data in the view