Help Angular by taking a 1 minute survey!Go to surveyHome

ng doc

Opens the official Angular documentation (angular.io) in a browser, and searches for a given keyword.

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

Arguments

Argument Description
<keyword>

The keyword to search for, as provided in the search bar in angular.io.

Options

Option Description
--help=
true|false|json|JSON

Shows a help message for this command in the console.

Default: false

--search=true|false

When true, searches all of angular.io. Otherwise, searches only API reference documentation.

Default: false

Aliases: -s