AngularJS file template and variables
Hi,
consider the following template:
angular.module('$module')
.controller('${NAME}', function ($scope) {
$scope.awesomeThings = [
'HTML5 Boilerplate',
'AngularJS',
'Karma'
];
});
This results in WebStorm asking me for module and scope values when creating a file from this template.
How can I define the template to leave $scope untouched when creating a file from the template?
Thanks,
Alex
Please sign in to leave a comment.
Hi there,
You need to escape $ sign by ${DS}, like this: ${DS}scope
Works fine, thanks.