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]
    

参数

参数说明
<keyword>

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

选项

选项说明
--help=
true|false|json|JSON

Shows a help message for this command in the console.

默认值: false

--search=true|false

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

默认值: false

别名: -s