I am new to Angular thing and have very little experience with Angular JS 1.x generation. However my question is about Angular 2. I was reading about Components
here and https://angular.io/docs/ts/latest/guide/architecture.html
I am using TypeScript and my question is : Is it safe to say that Component is a class (NOT @component annotation) similar to Model (as in Asp.Net MVC), since we can bind html controls with the fields defined in component class OR is it more like controller ? Or there is more which I am missing ?
There is a statement in 2nd Url, which says:
We define a Component's application logic - what it does to support the view - inside a class
Above statement is increasing my confusion, because we can do a lot of things inside a class which is bound with html. On text change we can remotely check something or on button click we can call a method and all this can be defined in a component class. So what exactly is the restriction of Components ? Can we treat them like models or like controllers or both ?
Please help me in clarifying this