Angular 6
Angular 6
Create new application.
command -> ng new app_name
what is data binding?
>> assigning values to variables.
types if binding
one way
> ts file to html file
two way
>html file to ts file vise vars
Questions
1. Can we load multiple components from bootstrap?
Ans. Yes you can load multiple components under bootstraps. example header, body and footer.
where header is one components, body is second and footer is third.
commands to create multiple components out side of root components.
> ng generate component component_name
app.modules.ts file need to update bootstraps.
2.
Type script - unlike js is has its different kind of type. its define variable into type. like
function typeScript(x : number, y: number) {
return x+y+1.0;
}
console.log(typeScript(2,3));
Create new Angular Application.
>> ng new PROJECT_NAME
i.e ng new amar-uttam-hai
Create new application.
command -> ng new app_name
what is data binding?
>> assigning values to variables.
types if binding
one way
> ts file to html file
two way
>html file to ts file vise vars
Questions
1. Can we load multiple components from bootstrap?
Ans. Yes you can load multiple components under bootstraps. example header, body and footer.
where header is one components, body is second and footer is third.
commands to create multiple components out side of root components.
> ng generate component component_name
app.modules.ts file need to update bootstraps.
2.
Type script - unlike js is has its different kind of type. its define variable into type. like
function typeScript(x : number, y: number) {
return x+y+1.0;
}
console.log(typeScript(2,3));
Create new Angular Application.
>> ng new PROJECT_NAME
i.e ng new amar-uttam-hai
Comments