Interview Questions
Angular - Javascript binding Framework (Bind view with Model), SPA using Routing, HTTP, DI.
Difference between AngularJS and Angular.
Angular JS controller based and Angular is component based
Lazy loading in Angular. Can build bundles.
Lazy loading: Lazy loading is a technique in Angular that allows you to load JavaScript components asynchronously when a specific route is activated. It improves the speed of the application load time by splitting the application into several bundles.
Directives in Angular
1. Structural (Add or remove element in the DOM)
2. Attribute (it changes the behavior) example hiding a button hide: true
3.Component (customize user control which has its own decorator)
Typescript: Adds types to the javascript.(Strongly Typed)
It provides the object oriented programming environment
Angular CLI - Ready made angular template, Scaffold project
Component -
Templates - HTML, ngModel, pipes
Databindings: how the view and component talk to each other.
String interpolation: mix the data the html from controller {{title}}
Property Binding: []
Event Binding: (click)
Two way binding [(ngModel)]
Explain architecture of Angular
Routing in Angular
1. Define a collection of routes.
2. router-outlet in HTML
3. RouterLink
From the code router.navigate
To achieve lazy loading construct modules. and use LoadChildren


Comments
Post a Comment