Skip to content

Instantly share code, notes, and snippets.

@rayrfan
Last active January 10, 2018 17:46
Show Gist options
  • Select an option

  • Save rayrfan/3c5e00d5ce6e21bb41ea724767cb8f27 to your computer and use it in GitHub Desktop.

Select an option

Save rayrfan/3c5e00d5ce6e21bb41ea724767cb8f27 to your computer and use it in GitHub Desktop.

Revisions

  1. Ray Fan revised this gist Jan 10, 2018. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions ng-notes.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ```
    # generate a component named PageNotFound only the .ts file, no separate style, template or spec file
    $ ng g c PageNotFound --dry-run --flat -is -it --spec=false
    # generate a component named PageNotFound with only a .ts file and no separate style, template or spec file or folder
    $ ng g c PageNotFound --flat -is -it --spec=false --dry-run
    ```
  2. Ray Fan created this gist Jan 10, 2018.
    4 changes: 4 additions & 0 deletions ng-notes.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    ```
    # generate a component named PageNotFound only the .ts file, no separate style, template or spec file
    $ ng g c PageNotFound --dry-run --flat -is -it --spec=false
    ```