Hello, welcome to therichpost.com. In this post, I will tell you How to create component in Angular2 with ng command?. Nowadays Angularjs is very popular and known as one page website. I am familiar with Angular1 very well but Angular2 is totally different with Angular1. Angular2 is totally command based. The very new feature in it is Typescript. That I litle discussed in my last post that declares variables in TypeScript. I will tell more about Typescript in my future posts.
Finally here is the working ng command for creating component in Angular2 and you need to run this in your command line:
ng generate component test-component –inline-template
There are many more in Angular2 and i will let you know all. Please do comment if you any query related to this post. Thank you. Therichpost.com