|
57 | 57 | ["verbose_$interval\tAngularJS", "\\$interval(${1:fn}${2:, ${3:delay}${4:, ${5:count}}${6:, ${7:invokeApply}}})"],
|
58 | 58 | ["verbose_$timeout\tAngularJS", "\\$timeout(${1:function()\\{\n\t$2\n\\}}, ${3:delay});"],
|
59 | 59 | ["verbose_directive\tAngularJS", "directive('$1', [${3:'$4', }function($4){\n\t${5:// Runs during compile}\n\treturn {\n\t\t// name: '',\n\t\t// priority: 1,\n\t\t// terminal: true,\n\t\t// scope: {}, // {} = isolate, true = child, false/undefined = no change\n\t\t// controller: function(\\$scope, \\$element, \\$attrs, \\$transclude) {},\n\t\t// require: 'ngModel', // Array = multiple requires, ? = optional, ^ = check parent elements\n\t\t// restrict: 'A', // E = Element, A = Attribute, C = Class, M = Comment\n\t\t// template: '',\n\t\t// templateUrl: '',\n\t\t// replace: true,\n\t\t// transclude: true,\n\t\t// compile: function(tElement, tAttrs, function transclude(function(scope, cloneLinkingFn){ return function linking(scope, elm, attrs){}})),\n\t\tlink: function(\\$scope, iElm, iAttrs, controller) {\n\t\t\t$0\n\t\t}\n\t};\n}]);"],
|
60 |
| - ["verbose_module\tAngularJS", "/**\n* $1 Module\n*\n* ${2:Description}\n*/\nangular.module('$1', [$3]).$0"] |
| 60 | + ["verbose_module\tAngularJS", "/**\n* $1 Module\n*\n* ${2:Description}\n*/\nangular.module('$1', [$3]).$0"], |
| 61 | + |
| 62 | + ["config\tAngularJS", "config([${1:'$2',}function($2) {\n\t$3\n}])"], |
| 63 | + ["constant\tAngularJS", "constant('${1:name}', ${2:value})"], |
| 64 | + ["controller\tAngularJS", "controller('${1:name}', [${2:'$3', }function($3){\n\t$4\n}])"], |
| 65 | + ["factory\tAngularJS", "factory('${1:name}', [${2:'$3', }function($3){\n\t$4\n}])"], |
| 66 | + ["run\tAngularJS", "run('${1:name}', [${2:'$3', }function($3){\n\t$4\n}])"], |
| 67 | + ["service\tAngularJS", "service('${1:name}', [${2:'$3', }function($3){\n\t$4\n}])"], |
| 68 | + ["value\tAngularJS", "value('${1:name}', ${2:value})"] |
61 | 69 | ],
|
62 | 70 | "angular": [
|
63 | 71 | ["bind\tAngularJS", "bind(${1:self}, ${2:fn}, ${3:args})"],
|
|
81 | 89 | ["isUndefined\tAngularJS", "isUndefined(${1:value})"],
|
82 | 90 | ["lowercase\tAngularJS", "lowercase(${1:string});"],
|
83 | 91 | ["mock\tAngularJS", "mock"],
|
| 92 | + ["module\tAngularJS", "module('$1', [$2])"], |
84 | 93 | ["noop\tAngularJS", "noop"],
|
85 | 94 | ["toJson\tAngularJS", "toJson(${1})"],
|
86 | 95 | ["uppercase\tAngularJS", "uppercase(${1:string});"],
|
|
0 commit comments