Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular 2 documentation / is there an ngdocs for angular 2?

I have a bit of experience with angular 2, but I'm still relatively new to the Framework. While looking around, I discovered something called ngdocs. It's very nice because it creates a sort of documentation / wiki area for you based on the comments in your code. (similar to js docs). However, it seems to be written exclusively for use with angular 1.XX.

I've done some searching around, but can't seem to find anything that would provide similar functionality for angular 2. Does anyone know if there is something similar to ng-docs for angular 2?

like image 470
Ryan La Forge Avatar asked May 09 '16 15:05

Ryan La Forge


People also ask

What is the need of angular 2?

Angular 2 is a framework for building web or mobile applications in HTML and Javascript or Typescript. It's the right choice of framework to use for your web or mobile applications.

Does angular 2 use JavaScript?

Angular 2 is an open source JavaScript framework to build web applications in HTML and JavaScript. This tutorial looks at the various aspects of Angular 2 framework which includes the basics of the framework, the setup of Angular and how to work with the various aspects of the framework.

What is the difference between AngularJS and angular 2?

Though AngularJS and Angular 2 are both frameworks for developing websites, they use different coding languages. AngularJS uses JavaScript, a text-based coding language used to make interactive elements. Angular 2 uses TypeScript, a subset of JavaScript created by Microsoft that incorporates static type definitions.

What is the TypeScript in Angular?

TypeScript is a primary language for Angular application development. It is a superset of JavaScript with design-time support for type safety and tooling. Browsers can't execute TypeScript directly. Typescript must be "transpiled" into JavaScript using the tsc compiler, which requires some configuration.


2 Answers

The only thing I have found so far is TypeDoc. It is not specific to angular but it will create some documentation for you based off of the typescript. It does appear to lack the ability to do certain things you may be used to with ngDoc (live examples and such).

like image 79
Jason Avatar answered Oct 15 '22 14:10

Jason


There is also a project called Compodoc (https://medium.com/vincent-ogloblinsky/compodoc-documentation-tool-for-angular-2-applications-44ec650e01a8), which generates documentation specific for Angular 2/4.

They are using normal comments and have added support of markdown syntax as well.

like image 21
Manuel Manhart Avatar answered Oct 15 '22 16:10

Manuel Manhart