grunt-ngdocs
grunt-ngdocs copied to clipboard
feat(docs): add resource type
I have the need to document all my angularjs resources. to do so :
/**
-
@ngdoc resource
-
@name MyModule.resource:MyResource
-
@module MyModule
-
@description
-
Hello world ! */ angular.module('MyModule').service('MyResource', function($resource) { 'use strict'; return $resource('hello/world/:action', { }, {
/** * @ngdoc function * @name create * @methodOf MyModule.resource:MyResource * @restMethod POST * @description * * @return {object} Promise */ create: { method: 'POST', isArray: false, params:{action:''} }
}); });
Thats a nice idea. Could you write a usage guide for the wiki?