As I read from angular2 officials, there is nothing significant difference between the two. @View is optional. However, there is something that will distinguish these two in the future:
@Component(/* ... */) @View({ media: 'Desktop', template: 'Template for desktop' }) @View({ media: 'Mobile', template: 'Template for Mobile' }) extends class Component_Name() {}
This feature has not yet been implemented. but may be used in the future, as @alexpods says here . I hope this changes the situation a bit.
source share