Created
September 7, 2012 18:57
-
-
Save RyanQuackenbush/3668602 to your computer and use it in GitHub Desktop.
Documenting AMD + Angularjs with webstorm 5 issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global define:true */ | |
define(["angular"], | |
function(angular) { | |
"use strict"; | |
var mod = angular.module("mine", []); | |
/** | |
* Main class description here | |
* @class mainservice | |
*/ | |
mod.factory("mainservice", | |
[ | |
/** @lends mainservice */ | |
function(){ | |
/** | |
* @name mainservice.getName | |
* @return {String} random hi message | |
*/ | |
function getName(){ | |
return "hi"; | |
} | |
return { | |
getName: getName | |
}; | |
}] | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment