|
157 | 157 | |149| [How do you test Angular application using CLI?](#how-do-you-test-angular-application-using-cli)|
|
158 | 158 | |150| [How to use polyfills in Angular application?](#how-to-use-polyfills-in-angular-application)|
|
159 | 159 | |151| [What are the ways to trigger change detection in Angular?](#what-are-the-ways-to-trigger-change-detection-in-angular)|
|
160 |
| -|152| [](#)| |
| 160 | +|152| [Differences between all versions of Angular?](#Differences-between-all-versions-of-Angular)| |
161 | 161 | |153| [](#)|
|
162 | 162 | |154| [](#)|
|
163 | 163 | |155| [](#)|
|
|
1952 | 1952 | 2. NgZone.run(callback): It evaluate the callback function inside the Angular zone.
|
1953 | 1953 | 3. ChangeDetectorRef.detectChanges(): It detects only the components and it's children.
|
1954 | 1954 |
|
1955 |
| -152. ### ? |
| 1955 | +152. ### Differences between all versions of Angular? |
| 1956 | + Angular 1 |
| 1957 | + • Angular 1 (AngularJS) is the first angular framework released in the year 2010. |
| 1958 | + • AngularJS is not built for mobile devices. |
| 1959 | + • It is based on controllers with MVC architecture. |
| 1960 | + Angular 2 |
| 1961 | + • Angular 2 was released in the year 2016. Angular 2 is a complete rewrite of Angular1 version. |
| 1962 | + • The performance issues that Angular 1 version had has been addressed in Angular 2 version. |
| 1963 | + • Angular 2 is built from scratch for mobile devices unlike Angular 1 version. |
| 1964 | + • Angular 2 is components based. |
| 1965 | + Angular 3 |
| 1966 | + The following are the different package versions in Angular 2. |
| 1967 | + • @angular/core v2.3.0 |
| 1968 | + • @angular/compiler v2.3.0 |
| 1969 | + • @angular/http v2.3.0 |
| 1970 | + • @angular/router v3.3.0 |
| 1971 | + The router package is already versioned 3 so to avoid confusion switched to Angular 4 version and skipped 3 version. |
| 1972 | + Angular 4 |
| 1973 | + • The compiler generated code file size in AOT mode is very much reduced. |
| 1974 | + • With Angular 4 the production bundles size is reduced by hundreds of KB’s. |
| 1975 | + • Animation features are removed from angular/core and formed as a separate package. |
| 1976 | + • Supports Typescript 2.1 and 2.2. |
| 1977 | + Angular 5 |
| 1978 | + • Angular 5 makes angular faster. It improved the loading time and execution time. |
| 1979 | + • Shipped with new build optimizer. |
| 1980 | + • Supports Typescript 2.5. |
| 1981 | + Angular 6 |
| 1982 | + • It is released in May 2018. |
| 1983 | + • Includes Angular Command Line Interface (CLI), Component Development KIT (CDK), Angular Material Package. |
| 1984 | + Angular 7 |
| 1985 | + • It is released in October 2018. |
| 1986 | + • TypeScript 3.1 |
| 1987 | + • RxJS 6.3 |
| 1988 | + • New Angular CLI |
| 1989 | + • CLI Prompts capability provide an ability to ask questions to the user before they run. It is like interactive dialog between the user and the CLI |
| 1990 | + • With the improved CLI Prompts capability, it helps developers to make the decision. New ng commands ask users for routing and CSS styles types(SCSS) and ng add @angular/material asks for themes and gestures or animations. |
| 1991 | + |
1956 | 1992 | 153. ### ?
|
1957 | 1993 | 154. ### ?
|
1958 | 1994 | 155. ### ?
|
|
0 commit comments