Skip to content

Instantly share code, notes, and snippets.

@tygern
Last active January 20, 2016 15:54
Show Gist options
  • Select an option

  • Save tygern/9716f288627907e2f0e1 to your computer and use it in GitHub Desktop.

Select an option

Save tygern/9716f288627907e2f0e1 to your computer and use it in GitHub Desktop.
AngularJS live templates for JetBrains editors
(function () {
'use strict';
angular.module('$MODULE$')
.component('$NAME$', {
template: '',
controller: '$CONTROLLER$',
bindings: {$END$}
});
})();
(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$
});
});
})();
(function () {
'use strict';
angular.module('$MODULE$')
.$TYPE$('$SUBJECT$', function ($COLLABORATORS$) {
$END$
});
})();
(function () {
'use strict';
angular.module('$MODULE$', [$COLLABORATORS$]);
})();
(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