forked from johnpapa/angular-styleguide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathangular.directive.webstorm-live-template.xml
37 lines (37 loc) · 2.96 KB
/
angular.directive.webstorm-live-template.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
<templateSet group="angular-styleguide-directive">
<template name="ngdirective"
value="(function() { 'use strict'; angular .module('$moduleName$') .directive('$directiveName$', $directiveName$); $directiveName$.$inject = ['$dependency$']; /* @ngInject */ function $directiveName$($dependency$) { var directive = { bindToController: true, controller: $ControllerName$, controllerAs: 'vm', link: link, restrict: 'A', scope: {} }; return directive; function link(scope, element, attrs) { $linkFunction$ } } $ControllerName$.$inject = ['$dependency$']; /* @ngInject */ function $ControllerName$($dependency$) { $ControllerNameFunction$ } })(); $END$"
description="Creates an Angular controller" toReformat="true" toShortenFQNames="true">
<variable name="moduleName" expression="" defaultValue=""moduleName"" alwaysStopAt="true"/>
<variable name="directiveName" expression="" defaultValue=""directiveName"" alwaysStopAt="true"/>
<variable name="dependency" expression="" defaultValue=""dependency"" alwaysStopAt="true"/>
<variable name="ControllerName" expression="" defaultValue=""ControllerName"" alwaysStopAt="true"/>
<variable name="linkFunction" expression="" defaultValue="" alwaysStopAt="true"/>
<variable name="ControllerNameFunction" 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="XML_TEXT" value="false"/>
<option name="JSON" value="false"/>
<option name="JSP" 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="CUCUMBER_FEATURE_FILE" value="false"/>
<option name="JAVA_SCRIPT" value="false"/>
<option name="JS_EXPRESSION" value="false"/>
<option name="JSX_HTML" value="false"/>
<option name="JS_STATEMENT" value="true"/>
<option name="TypeScript" value="false"/>
<option name="Handlebars" value="false"/>
<option name="HAML" value="false"/>
<option name="JADE" value="false"/>
<option name="CoffeeScript" value="false"/>
<option name="DART" value="false"/>
<option name="OTHER" value="false"/>
</context>
</template>
</templateSet>