Get Component without spec.ts file in Angular

Source: https://stackoverflow.com/questions/40990280/get-component-without-spec-ts-file-in-angularjs-2


Inside your angular-cli.json set the spec.component parameter to false:
{
   ...
   "defaults" : {
       ...
       "spec": {
           ...
           "component": false
       }
   }
}
or use the --spec=false option during creation
ng generate component --spec=false component-name



Không có nhận xét nào:

Cold Turkey Blocker

 https://superuser.com/questions/1366153/how-to-get-rid-of-cold-turkey-website-blocker-get-around-the-block Very old question, but still wan...