Skip to content

Instantly share code, notes, and snippets.

@rafszul
Last active November 21, 2017 10:24
Show Gist options
  • Save rafszul/f3cd94cfae58fedbde1b43f6da9e5e00 to your computer and use it in GitHub Desktop.
Save rafszul/f3cd94cfae58fedbde1b43f6da9e5e00 to your computer and use it in GitHub Desktop.

ng g component **name** --flat --module=app

--flat puts the file in src/app instead of its own folder. --module=app tells the CLI to register it in the imports array of the AppModule.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment