Skip to content

Instantly share code, notes, and snippets.

{"lastUpload":"2019-10-06T18:32:39.184Z","extensionVersion":"v3.4.3"}
{
"completions":
[
{ "trigger": "ng-new-module", "contents": "(function( angular ) {\n\n\tangular.module('${1:NewModuleName}', ['${2:OptionalDependencyList}'])\n\n\t$3\n\n}( angular ) );" },
{ "trigger": "ng-existing-module", "contents": "(function( angular ) {\n\n\tangular.module('${1:ExistingModuleName}')\n\n\t$2\n\n}( angular ) );" },
{ "trigger": "ng-constant-inline", "contents": ".constant('$1', '$2')" },
{ "trigger": "ng-controller", "contents": ".controller('$1', [${2/(?:.+)/'/g}${2/,[ ]*/', '/g}${2/(?:.+)/', /g}function ($2) {\n\t$3\n}])" },
{ "trigger": "ng-directive-inline", "contents": ".directive('$1', [${2/(?:.+)/'/g}${2/,[ ]*/', '/g}${2/(?:.+)/', /g}function ($2) {\n\n\treturn {\n\n\t\tlink: function(scope, element, attributes, controllers) {\n\n\t\t\t$3\n\n\t\t},\n\n\t\treplace: ${4:false},\n\n\t\trestrict: '${5:AE}',\n\n\t\tscope: {\n\t\t\t$6\n\t\t},\n\n\t\ttemplateUrl: '$7'\n\n\t}\n\n}])" },