grunt-ngdocs icon indicating copy to clipboard operation
grunt-ngdocs copied to clipboard

feat(docs): add resource type

Open landru29 opened this issue 9 years ago • 1 comments

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:''}
    }
    

    }); });

landru29 avatar Aug 12 '15 14:08 landru29

Thats a nice idea. Could you write a usage guide for the wiki?

m7r avatar Apr 24 '16 11:04 m7r