Categories

Saturday, October 5, 2024
#919814419350 therichposts@gmail.com
Angular2Angularjs

How to create component in Angular2 with ng command?

create component in Angular2 with ng command

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

therichpost
the authortherichpost
Hello to all. Welcome to therichpost.com. Myself Ajay Malhotra and I am freelance full stack developer. I love coding. I know WordPress, Core php, Angularjs, Angular 14, Angular 15, Angular 16, Angular 17, Bootstrap 5, Nodejs, Laravel, Codeigniter, Shopify, Squarespace, jQuery, Google Map Api, Vuejs, Reactjs, Big commerce etc.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.