Last active
January 20, 2016 15:54
-
-
Save tygern/9716f288627907e2f0e1 to your computer and use it in GitHub Desktop.
AngularJS live templates for JetBrains editors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function () { | |
| 'use strict'; | |
| angular.module('$MODULE$') | |
| .component('$NAME$', { | |
| template: '', | |
| controller: '$CONTROLLER$', | |
| bindings: {$END$} | |
| }); | |
| })(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function () { | |
| 'use strict'; | |
| describe('$SUBJECT$', function () { | |
| var $scope; | |
| beforeEach(module('$MODULE$')); | |
| beforeEach(inject(function ($controller, $rootScope) { | |
| $scope = $rootScope.$new(); | |
| $controller('$SUBJECT$', { | |
| $scope: $scope | |
| }); | |
| })); | |
| it('$BEHAVIOR$', function () { | |
| $END$ | |
| }); | |
| }); | |
| })(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function () { | |
| 'use strict'; | |
| angular.module('$MODULE$') | |
| .$TYPE$('$SUBJECT$', function ($COLLABORATORS$) { | |
| $END$ | |
| }); | |
| })(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function () { | |
| 'use strict'; | |
| angular.module('$MODULE$', [$COLLABORATORS$]); | |
| })(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function () { | |
| 'use strict'; | |
| describe('$SUBJECT$', function () { | |
| var $SUBJECT$; | |
| beforeEach(module('$MODULE$')); | |
| beforeEach(inject(function (_$SUBJECT$_) { | |
| $SUBJECT$ = _$SUBJECT$_; | |
| })); | |
| it('$BEHAVIOR$', function () { | |
| $END$ | |
| }); | |
| }); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment