Skip to content

Commit

Permalink
Update templateSet to individual group name
Browse files Browse the repository at this point in the history
  • Loading branch information
Melissa Austin committed Sep 23, 2015
1 parent 2eebc5b commit 979c55a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<templateSet group="angular-styleguide">
<templateSet group="angular-styleguide-controller">
<template name="ngcontroller" value="(function() {&#10; 'use strict';&#10;&#10; angular&#10; .module('$moduleName$')&#10; .controller('$ControllerName$', $ControllerName$);&#10;&#10; $ControllerName$.$inject = ['$dependency$'];&#10;&#10; /* @ngInject */&#10; function $ControllerName$($dependency$) {&#10; var vm = this;&#10; vm.title = '$ControllerName$';&#10;&#10; activate();&#10;&#10; ////////////////&#10;&#10; function activate() {&#10; $END$&#10; }&#10; }&#10;&#10;})();" description="Creates an Angular controller" toReformat="true" toShortenFQNames="true">
<variable name="moduleName" expression="" defaultValue="&quot;moduleName&quot;" alwaysStopAt="true" />
<variable name="ControllerName" expression="" defaultValue="&quot;ControllerName&quot;" alwaysStopAt="true" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<templateSet group="angular-styleguide">
<templateSet group="angular-styleguide-directive">
<template name="ngdirective" value="(function() {&#10; 'use strict';&#10;&#10; angular&#10; .module('$moduleName$')&#10; .directive('$directiveName$', $directiveName$);&#10;&#10; $directiveName$.$inject = ['$dependency$'];&#10;&#10; /* @ngInject */&#10; function $directiveName$ ($dependency$) {&#10; var directive = {&#10; bindToController: true,&#10; controller: $ControllerName$,&#10; controllerAs: 'vm',&#10; link: link,&#10; restrict: 'A',&#10; scope: {&#10; }&#10; };&#10; return directive;&#10;&#10; function link(scope, element, attrs) {&#10; $END$&#10; }&#10; }&#10;&#10;})();" description="Creates an Angular directive" toReformat="true" toShortenFQNames="true">
<variable name="moduleName" expression="" defaultValue="&quot;moduleName&quot;" alwaysStopAt="true" />
<variable name="directiveName" expression="" defaultValue="&quot;directiveName&quot;" alwaysStopAt="true" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<templateSet group="angular-styleguide">
<templateSet group="angular-styleguide-factory">
<template name="ngfactory" value="(function() {&#10; 'use strict';&#10;&#10; angular&#10; .module('$moduleName$')&#10; .factory('$factoryName$', $factoryName$);&#10;&#10; $factoryName$.$inject = ['$dependency$'];&#10;&#10; /* @ngInject */&#10; function $factoryName$($dependency$) {&#10; var service = {&#10; $functionName$: $functionName$&#10; };&#10; return service;&#10;&#10; ////////////////&#10;&#10; function $functionName$() {&#10; $END$&#10; }&#10; }&#10;&#10;})();" description="Creates an Angular factory" toReformat="true" toShortenFQNames="true">
<variable name="moduleName" expression="" defaultValue="&quot;moduleName&quot;" alwaysStopAt="true" />
<variable name="factoryName" expression="" defaultValue="&quot;factoryName&quot;" alwaysStopAt="true" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<templateSet group="angular-styleguide">
<templateSet group="angular-styleguide-filter">
<template name="ngfilter" value="(function() {&#10; 'use strict';&#10;&#10; angular&#10; .module('$moduleName$')&#10; .filter('$filterName$', $filterName$);&#10;&#10; function $filterName$() {&#10; return $filterName$Filter;&#10;&#10; ////////////////&#10;&#10; function $filterName$Filter($parameters$) {&#10; return $parameters$;&#10; } $END$&#10; }&#10;&#10;})();" description="Creates an Angular filter" toReformat="true" toShortenFQNames="true">
<variable name="moduleName" expression="" defaultValue="&quot;moduleName&quot;" alwaysStopAt="true" />
<variable name="filterName" expression="" defaultValue="&quot;filterName&quot;" alwaysStopAt="true" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<templateSet group="angular-styleguide">
<templateSet group="angular-styleguide-module">
<template name="ngmodule" value="(function() {&#10; 'use strict';&#10;&#10; angular&#10; .module('$moduleName$', [&#10; '$dependency$'&#10; ]); $END$&#10;&#10;})();" description="Creates an Angular module" toReformat="true" toShortenFQNames="true">
<variable name="moduleName" expression="" defaultValue="&quot;moduleName&quot;" alwaysStopAt="true" />
<variable name="dependency" expression="" defaultValue="&quot;dependency&quot;" alwaysStopAt="true" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<templateSet group="angular-styleguide">
<templateSet group="angular-styleguide-service">
<template name="ngservice" value="(function() {&#10; 'use strict';&#10;&#10; angular&#10; .module('$moduleName$')&#10; .service('$ServiceName$', $ServiceName$);&#10;&#10; $ServiceName$.$inject = ['$dependency$'];&#10;&#10; /* @ngInject */&#10; function $ServiceName$($dependency$) {&#10; this.$functionName$ = $functionName$;&#10;&#10; ////////////////&#10;&#10; function $functionName$() {&#10; $END$&#10; }&#10; }&#10;&#10;})();" description="Creates an Angular service" toReformat="true" toShortenFQNames="true">
<variable name="moduleName" expression="" defaultValue="&quot;moduleName&quot;" alwaysStopAt="true" />
<variable name="ServiceName" expression="" defaultValue="&quot;ServiceName&quot;" alwaysStopAt="true" />
Expand Down

0 comments on commit 979c55a

Please sign in to comment.