Angular tutorial - Setup environment.
Just went through John Papa AngularJs first look tutorial.
I guess the best way to get people started is to get your environment ready. Download from here.
Make sure you have npm installed and run the following command :-
In this tutorial, we are going to use typescript as our primary development js language.
Let's go create a really simple component. Angular2 requires @Component in your es6 module.
Our view looks like this. It's pretty simple, all you need is a uniquely named html markup to specify where you need to load it.
Next we need to create a separate file that binds our component together.
That's all you need to create a simple component.
What are the attribute / property available under @Component.? Well I'm glad you ask that question. You can get all the answer here.