Angular CLI - ng doc Command


Advertisements

Syntax

ng doc <keyword> [options]
ng d <keyword> [options]

ng doc command opens the official Angular documentation in a browser, and searches for a given keyword. Options are optional parameters.

Arguments

Sr.No. Argument & Syntax Description
1 <keyword> The keyword to search for, as provided in the search bar in angular.io.

Options

Sr.No. Option & Syntax Description
1 --help=true|false|json|JSON

Shows a help message for this command in the console.

Default: false

First move to an angular project updated using ng build command.

Now run the doc command.

Example

\>Node\>Howcodex> ng doc build

Now a browser window will open and search the relevant keyword.

Doc Search
Advertisements