-
Answer :
- Angular is a most popular web development framework for developing mobile apps as well as desktop applications.
- Angular framework is also utilized in the cross platform mobile development called IONIC and so it is not limited to web apps only.
- Angular is an open source framework written and maintained by angular team at Google and the Father of Angular is Misko Hevery.
- Angular is written in TypeScript and so it comes with all the capabilities that typescript offers.
-
Answer :
Angular Architecture Overview :
Angular is a most popular web development framework for developing mobile apps as well as desktop applications.
Angular framework is also utilized in the cross platform mobile development called IONIC and so it is not limited to web apps only.
Angular is an open source framework written and maintained by angular team at Google and the Father of Angular is Misko Hevery.
The bootstrapping process creates the components listed in the bootstrap array and inserts each one into the browser (DOM)
you can identify the seven main building blocks of an Angular Application.
- Component
- Templates
- Metadata
- Data Binding
- Directives
- Services
- Dependency Injection
The basic building blocks of an Angular application are NgModules, which provide a compilation context for components.
Angular app is defined by a set of NgModules and it always has at least a root module that enables bootstrapping, and many more feature modules.
- Components define Template views
- Components use services
The Angular Module (NgModules) helps us to organize an application into connected blocks of functionality.
The NgModule properties for the minimum “AppModule” generated by the CLI which are follow as -
Declarations — Use to declare the application components.
Imports —Every application must import BrowserModule to run the app in a browser.
Providers — There are none to start.
Bootstrap — This is a root AppComponent that Angular creates and inserts into the index.html host web page.
-
Answer :
For updating Angular 6 to Angular 7,
you should use a command:
ng update @angular/cli @angular/core
-
Answer :
UrlSegment Interface :
UrlSegment interface represents a single URL segment and the constructor, properties, and methods look like below UrlSegment class i.e.
class UrlSegment {
constructor(path: string, parameters: {...})
path: string
parameters: {...}
toString(): string
}
The UrlSegment is a part of a URL between the two slashes and it contains a path and matrix parameters associated with the segment.
-
Answer :
The ngcc Angular node_module compatibility compiler :
- The ngcc is a tool which "upgrades" node_module compiled with non-ivy ngc into ivy compliant format.
- This compiler will convert node_modules compiled with Angular Compatibility Compiler (ngcc), into node_modules which appear to have been compiled with TSC compiler transformer (ngtsc) and this compiler conversions will allow such “legacy” packages to be used by the Ivy rendering engine.
- TSC transformer which removes and converts @Pipe, @Component, @Directive and @NgModule to the corresponding definePipe, defineComponent, defineDirective and defineInjector.
-
Answer :
Do Bootstrap Interface :
Angular 7 added a new life-cycle hook that is called ng Do Bootstrap and an interface that is called Do Bootstrap.
Example:
//ng Do Bootstrap - Life-Cycle Hook Interface
classApp Module implements Do Bootstrap {
ng Do Bootstrap(appRef: ApplicationRef) {
appRef.bootstrap(AppComponent);
}
}
-
Answer :
The XMB is basically a key value pairs with no deeper structure. It does have a mechanism for named placeholders, with descriptions and examples. The messages for any given other language must be correspond 1:1.
-
Answer :
The placeholders have one example tag () and a text node. The text node will be used as the original value from the placeholder, while the example will represent a dummy value.
-
Answer :
The major release and expanding to the entire platform including-
- Core framework,
- Angular Material,
- CLI
-
Answer :
Ivy Rendering Engine :
The Ivy rendering engine is a new backwards-compatible Angular renderer main focused on the following.
- Speed Improvements
- Size Reduction
- Increased Flexibility
The template functions for creating dynamically views are no longer nested functions inside each other.
Now we use for loops that are nested inside other loops.
Example:
functionAppComponent(rf: RenderFlags, ctx: AppComponent) {
functionulTemplateFun(rf1: RenderFlags, ctx0: any) {
functionliTemplateFun(rf1: RenderFlags, ctx1: any) {...}
}
}
-
Answer :
Key Value Pipe:
Change you object into an array of key value pairs that output array will be ordered by keys.
By default it will be by Unicode point value.
Syntax:
{{your input expression | key value [:compareFn] }}
-
Answer :
Core Dependencies:
There are two types of core dependencies: RxJS and TypeScript.
RxJS 6.3:
RxJS version 6.3 is used by Angular 7. It has no changes in the version from Angular 6
TypeScript 3.1:
TypeScript version 3.1 is used by Angular 7. It is the upgrade from the version2.9 of Angular 6.
-
Answer :
Bazel is a test tool just like the Make, Maven and Gradle and it is an open-source build. Bazel utilizes the readable and high-level build language. It handles the project in a great number of languages and builds the product for a large number of platforms. Moreover, it supports multiple users and large codebases over several repositories.
-
Answer :
Create a class using below code:
ng generate class [options]
ng g class [options]
Whose name refers the name of a class.
Options refer to the project name, spec value in Boolean or type of a file.
-
Answer :
There are two ways to register decorators in Angular.
These are:
- $provide.decorator
- module.decorator
No comments:
Post a Comment