-
Notifications
You must be signed in to change notification settings - Fork 0
/
ngLiveTemplates.xml
168 lines (168 loc) · 10.3 KB
/
ngLiveTemplates.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<templateSet group="ngLiveTemplates">
<template name="ngms" value="angular.module('$moduleName$',[ $END$ ])" description="A new angular module setter." toReformat="true" toShortenFQNames="true">
<variable name="moduleName" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="CSS_PROPERTY_VALUE" value="false" />
<option name="CSS_DECLARATION_BLOCK" value="false" />
<option name="CSS_RULESET_LIST" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="true" />
<option name="JS_EXPRESSION" value="true" />
<option name="JS_STATEMENT" value="true" />
<option name="HAML" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="ngmg" value="angular .module('$moduleName$') $END$" description="A new angular module getter." toReformat="true" toShortenFQNames="true">
<variable name="moduleName" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_SCRIPT" value="true" />
<option name="JS_EXPRESSION" value="true" />
<option name="JS_STATEMENT" value="true" />
</context>
</template>
<template name="ngf" value=".factory('$factoryName$', $factoryName$); $factoryName$.$inject = ['$injectables$']; function $factoryName$($injectables$) { return { $serviceFunction$: $serviceFunction$ }; function $serviceFunction$() { $END$ } } " description="A new angular factory." toReformat="true" toShortenFQNames="true">
<variable name="factoryName" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="injectables" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="serviceFunction" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JS_EXPRESSION" value="false" />
<option name="JS_STATEMENT" value="true" />
</context>
</template>
<template name="ngdl" value=".directive('$directiveName$', $directiveName$); $directiveName$.$inject = ['$injectables$']; function $directiveName$($injectables$) { return { restrict: 'E', replace: true, templateUrl: '$directiveName$.tmpl.html', scope: { $scopeVar$: '=' }, link: linkFunc }; function linkFunc(scope, element, attrs) { $END$ } } " description="A directive with a linking function." toReformat="true" toShortenFQNames="true">
<variable name="directiveName" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="injectables" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="scopeVar" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="CSS_PROPERTY_VALUE" value="false" />
<option name="CSS_DECLARATION_BLOCK" value="false" />
<option name="CSS_RULESET_LIST" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="JS_EXPRESSION" value="false" />
<option name="JS_STATEMENT" value="true" />
<option name="HAML" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="ngdc" value=".directive('$directiveName$', $directiveName$); function $directiveName$() { return { restrict: 'E', replace: true, templateUrl: '$directiveName$.tmpl.html', scope: { $scopeVar$: '=' }, controller: $directiveName$Ctrl, controllerAs: 'vm', bindToController: true }; } $directiveName$Ctrl.$inject = ['$injectables$']; function $directiveName$Ctrl($injectables$) { var vm = this; $END$ } " description="A directive with a controller function." toReformat="true" toShortenFQNames="true">
<variable name="directiveName" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="scopeVar" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="injectables" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="CSS_PROPERTY_VALUE" value="false" />
<option name="CSS_DECLARATION_BLOCK" value="false" />
<option name="CSS_RULESET_LIST" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="JS_EXPRESSION" value="false" />
<option name="JS_STATEMENT" value="true" />
<option name="HAML" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="ngc" value=".controller('$controllerName$', $controllerName$); $controllerName$.$inject = ['$injectables$']; function $controllerName$($injectables$) { var vm = this; $END$ }" description="A new angular controller." toReformat="true" toShortenFQNames="true">
<variable name="controllerName" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="injectables" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="CSS_PROPERTY_VALUE" value="false" />
<option name="CSS_DECLARATION_BLOCK" value="false" />
<option name="CSS_RULESET_LIST" value="false" />
<option name="CSS" value="false" />
<option name="JS_EXPRESSION" value="false" />
<option name="JS_STATEMENT" value="true" />
<option name="HAML" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="ngbt" value="{{ '$binding$' | translate }}$END$" description="A binding to be translated in Angular JS." toReformat="true" toShortenFQNames="true">
<variable name="binding" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="true" />
<option name="HTML" value="true" />
</context>
</template>
<template name="ngb" value="{{ $binding$ }}$END$" description="A binding in AngularJS." toReformat="true" toShortenFQNames="true">
<variable name="binding" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="true" />
<option name="HTML" value="true" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="CSS_PROPERTY_VALUE" value="false" />
<option name="CSS_DECLARATION_BLOCK" value="false" />
<option name="CSS_RULESET_LIST" value="false" />
<option name="CSS" value="false" />
<option name="JAVA_SCRIPT" value="false" />
<option name="HAML" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="ngw" value="$scope.$watch('$watchExpr$',function(newValue, oldValue){ $END$ });" description="Define a $watch for an expression." toReformat="true" toShortenFQNames="true">
<variable name="watchExpr" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="CSS_PROPERTY_VALUE" value="false" />
<option name="CSS_DECLARATION_BLOCK" value="false" />
<option name="CSS_RULESET_LIST" value="false" />
<option name="CSS" value="false" />
<option name="JS_STATEMENT" value="true" />
<option name="HAML" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="scv" value="$scope.$variable$ = $value$; $END$" description="Defines a new $scope'd variable inside an AngularJS controller." toReformat="true" toShortenFQNames="true">
<variable name="variable" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="value" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="CSS_PROPERTY_VALUE" value="false" />
<option name="CSS_DECLARATION_BLOCK" value="false" />
<option name="CSS_RULESET_LIST" value="false" />
<option name="CSS" value="false" />
<option name="JS_STATEMENT" value="true" />
<option name="HAML" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
<template name="scf" value="$scope.$functionName$ = function($args$) { $END$ };" description="Define a new $scope'd function (usually inside an AngularJS Controller). You can change the function name and arguments." toReformat="true" toShortenFQNames="true">
<variable name="functionName" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="args" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="HTML_TEXT" value="false" />
<option name="HTML" value="false" />
<option name="XSL_TEXT" value="false" />
<option name="XML" value="false" />
<option name="CSS_PROPERTY_VALUE" value="false" />
<option name="CSS_DECLARATION_BLOCK" value="false" />
<option name="CSS_RULESET_LIST" value="false" />
<option name="CSS" value="false" />
<option name="JS_STATEMENT" value="true" />
<option name="HAML" value="false" />
<option name="OTHER" value="false" />
</context>
</template>
</templateSet>