Skip to content

Instantly share code, notes, and snippets.

@RyanQuackenbush
Created September 7, 2012 18:57
Show Gist options
  • Save RyanQuackenbush/3668602 to your computer and use it in GitHub Desktop.
Save RyanQuackenbush/3668602 to your computer and use it in GitHub Desktop.
Documenting AMD + Angularjs with webstorm 5 issue
/*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