Sunday, 21 June 2020

Create a component without spec file in Angular 9

How to Create a component without spec file in Angular 9?


In the angular 9 there are two ways to do this.

1. By using angular CLI command

Just use following commands to remove spec file for generate component

ng generate component componentname --spec=false;


2. or using Angular.json

just use following command

ng config schematics.@schematics/angular:component.spec false


it will create following section in angular.json

AdSense

Chand

  मुझे चाँद देखना पसंद है, उसे चाँद सा दिखना पसंद है। वो भी अपने दाग नहीं छुपाती, आँखों में काजल, माथे पे बिंदी नहीं लगाती। होठों को उन्...

Follow