Angular-cli: Change app prefix

Created on 11 Oct 2016  路  4Comments  路  Source: angular/angular-cli

Hi,
Is there a way to change the app generated prefix + fixing the test warning: "ObSomeComponent" should have prefix "app"?

I have tried to change the prefix property in the angular-cli.json but it didn't help.

Most helpful comment

thanks @chadbr !

All 4 comments

In my tslint.json, I set the check to off:

"directive-selector-prefix": [false, "app"],

thanks @chadbr !

Fixed it like this, in tslint.json

"component-selector": [
true,
"element",
"ObSomeComponent",
"kebab-case"
],

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings