Skip to content

Instantly share code, notes, and snippets.

Created June 11, 2015 19:00
What would you like to do?
Directive Template for use in Webstorm
(function() {
'use strict';
.controller('${controllerName}', [${controllerName}])
.directive('${directiveName}', [${directiveName}]);
function ${controllerName}() {
var vm = this;
vm.activate = function() {
function ${directiveName}() {
return {
restrict: 'E',
scope: {},
templateUrl: '',
controller: '${controllerName}',
controllerAs: 'vm',
bindToController: true,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment