ngx install

Install a component in an existing project:

$ ngx install [options] <component> [target-directory]

Options

-f, --force

Overwrite existing file(s).

-h, --help

Output usage information.

Arguments

<component>

Component to install.

Format: [<github-username>/]<github-repository-name>

  • if only a <github-repository-name> is specified, ngx-components/<github-repository-name> is used
<target-directory>

Where to install the component.

  • if no target-directory is specified, src/components is used

Examples

# Install ngx-components/angular-ui-router-component in src/components/angular-ui-router-component
$ ngx install angular-ui-router-component

# Install ngx-components/angular-ui-router-component in src/components/homepage
$ ngx install angular-ui-router-component src/components/homepage

# Install github-username/foo in src/components/foo
$ ngx install github-username/foo

# Install github-username/foo in src/components/bar
$ ngx install github-username/foo in src/components/bar

What's next?