- Each AngularJS module to respective Angular module.
- Element type directive to a Component.
- Attribute type directive with a template to a Component.
- Attribute type directive without a template to a Directive.
- Find the set of controllers and templates in your routes and convert each of them to a component. If two different templates use the same controller, you must create two different components corresponding to each of the templates.
- Make sure to move common business logic to an Injectable (aka service) to improve code reusability.
- Convert a factory or a service to an Injectable (aka services)
- Convert a provider too to an Injectable but using useFactory
- Convert a filter to a Pipe.
- Write all your run block code in a callback by chaining on the bootstrap method call of main.ts file. Example:
Saturday, December 22, 2018
Convert Angular JS application to Angular 2 application
Subscribe to:
Post Comments (Atom)
Followers
Link
Labels
Agille
(3)
Angular 2
(96)
Architecture
(7)
ASP .Net
(30)
C#/VB .Net
(161)
Entityframework
(11)
General
(33)
Git
(2)
Hosting
(2)
HTML
(4)
Interview
(12)
Interview-Agile
(1)
Interview-Angular
(25)
Interview-ASP .Net
(3)
Interview-C#
(16)
Interview-JavaScript
(1)
Interview-MVC
(30)
Interview-SQL Server
(4)
Interview-WCF
(2)
Islam
(6)
Java Script
(37)
JQuery
(1)
MVC
(53)
NodeJS
(1)
Puzzles
(1)
React-Native
(3)
Security
(1)
Shayri
(10)
SQL Server
(41)
VC++
(5)
WCF
(21)
Web API
(27)
WPF
(21)
No comments:
Post a Comment