Hi all
I want to comment my code such that later I can include a doc-generation task as part of a build process.
The only reference to ngdoc I could find on the Angular site was
here, where it says:
To see how we document our APIs, please check out the existing ngdocs.
So I have been looking at the Angular source as an example, but the examples there are a bit limited: I am not defining variables on the global scope as the code there does.
Examples of the code I want to document:
angular.module(
'MainApp',
[
'Module1',
'Module2',
...
]
).config(
[
'$routeProvider',
function ($routeProvider) {
$routeProvider.when(
'/home',
{
templateUrl: 'path/to/home-main-view.html',
controller: 'HomeController'
}
).when(
'/profiles',
{
templateUrl: 'path/to/profiles-main-view.html',
controller: 'ProfilesController'
}
).otherwise(
{
redirectTo: '/home'
}
);
}
]
);
And this:
angular.module(
'HomeControllerModule',
[
]
)
.controller(
'HomeController',
[
'$scope',
'MenuMainModel',
'HomeDataService',
'HomeWrapperService',
'HomeModel',
'PageTitleModel',
'PageHeaderModel',
function ($scope, MenuMainModel, HomeDataService, HomeWrapperService, HomeModel, PageTitleModel, PageHeaderModel) {
$scope.homeModel = HomeModel;
// ...
}
]
);
Can anyone point me in the direction of some examples and/or documentation?
I've been googling, but to no avail so far...
thanks in advance
Matt