In Angular 2, I'm looking for an explanation on the difference between
@Component ({
selector: 'test-component',
template: '<div>Hello World</div>'
})
and
@Component ({
selector: 'test-component',
})
@View ({
template: '<div>Hello World</div>'
})
I have tried creating 2 components with the 2 different approaches and they both seem to behave the same. Any clarification would be helpful.