Changing the Default Angular Element Prefix

Ole Ersoy
Dec 17, 2020

Scenario

We want our all our elements generated with the Firefly Semantics prefix fs when creating new components.

For example ng g c TodoList should generate the element fs-todo-list .

Approach

Generate the project like this:

ng new demo --prefix fs

--

--