|
|
|
|
|
by dfsegoat
3566 days ago
|
|
Just curious if you could speak to any of the performance / development time metrics? I.e. do you spend less time developing a component in ng2 vs. ng 1.x ? Do you get better performance with ng2 vs. 1.x etc? I know it's supposed to be faster - I just am not finding people using this stuff in production seriously until now. I don't want to clog up the angular group with these informal lines of questioning - obviously. |
|
My favorite thing about ng2 components over ng1 would be the annotations. One annotation turns my component into a component. It links the html template, sets up the services, injects the other components and directives it needs in one simple annotation. In ng1, I remember it being cumbersome to set everything up.
To use a component in your existing app. You create a new ts file. Add an annotation. Write the template inline or in another file. Reference that ts class in your other components. That's it!