- 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:
Visit the blog for .Net FAQ,.Net interview questions,ASP .Net FAQ, C# .Net FAQ,ASP .Net interview questions, interview question on .Net, interview questions on C#.
No comments:
Post a Comment