Friday, 25 June 2021

How to create component in a specific module in Angular


Use below cli command to create component in a specific module :

ng g c SubscriberComponent --module= app.module.ts

SunscriberComponent  would be added to module 'AppModule'

No comments:

Post a Comment

Parent child component communication in Angular. (Approach-1)

  If we will make a property in Child component and somehow if it's a two-way bindable property, then Child would be able to set its val...