Angular 6 is out!
Angular 6 is stable for development. There are great features for Angular-cli with new introduction to Angular Elements for the first time. They have also push the updates to all of core framework packages (@angular/core, @angular/common, and @angular/compiler, etc.) and Angular Material + CDK. See the new changes here . Now lets see what makes it better then Angular 5 !!
- ng add
– Its a new CLI command.ng add
will help you to download new dependencies/packages and update our project with configuration changes. - ng update
– a new CLI command that will read your package.json and suggest you updates of packages for your application.ng update
will help you use the right version of dependencies, thereby keeping the code in sync and updated. - Material starter template kits
– Once you runng g @angular/material
to add material to your existing application you will also be able to generate three new starter templates like :
a. Side navigation bar : In order to get a side navigation bar from material design
Run command ng generate @angular/material:material-nav --name=my-nav
Run command ng generate @angular/material:material-dashboard --name=my-dashboard
Run command ng generate @angular/material:material-table --name=my-table
4. Register Providers
– Now we can make services available to the entire app. Before we had to import and register a service with injector in a module, and add it to the provider’s array. Now we can use the providedIn property in the injectable decorator. It tells us about the root module which is responsible for creating an instance of the services.
Other Important Updates
1. RxJS V6 comes with backward compatibility package rxjs-compat.
2. Angular-cli
– CLI projects will have angular.json
instead of .angular-cli.json
for configuration.
– Now CLI supports workspace with multiple project libraries.
– Increased Speed with less code.
3. Use ng-template instead of template directive to render html
4. Angular Elements : Render any of your angular elements as native html elements with
ng add @angular/elements
Angular is going more towards accessibility to PWA (Progressive Web Apps)…. Keep following for new updates in Software Industry…