-
Notifications
You must be signed in to change notification settings - Fork 0
/
snippets.json
1 lines (1 loc) · 1.93 KB
/
snippets.json
1
{".source.js":{"ATOM_HOME/snippets/angular.cson.angular-module":{"prefix":"angular-app","body":"const angular = require(\"angular\");\n\nconst app = angular.module(\"${1}\", [\n]);\n\nmodule.exports = \"${1}\";","rightLabelHTML":"angular-module"},"ATOM_HOME/snippets/angular.cson.angular-app-component":{"prefix":"angular-app-component","body":"const app = angular.module(\"${1}\", [\n]);\n\napp.controller(\"${1}Controller\", () => {\n});\n\napp.directive(\"${1}Directive\", () => {\n return {\n scope: {},\n templateUrl: '/index.html',\n controller: function () {\n }\n };\n});\n\napp.component(\"${1}Component\", {\n bindings: {\n },\n template: '<div></div>',\n controller: function () {\n\n }\n});\n\napp.filter(\"${1}Filter\", () => {\n return (input, option1) => {\n return input + option1;\n };\n});","rightLabelHTML":"angular-app-component"},"ATOM_HOME/snippets/angular.cson.angular-controller":{"prefix":"angular-controller","body":"app.controller(\"${1}\", () => {\n});","rightLabelHTML":"angular-controller"},"ATOM_HOME/snippets/angular.cson.angular-directive":{"prefix":"angular-directive","body":"app.directive(\"${1}\", () => {\n return {\n scope: {\n },\n template: '/index.html',\n controller: function () {\n }\n };\n});","rightLabelHTML":"angular-directive"},"ATOM_HOME/snippets/angular.cson.angular-component":{"prefix":"angular-component","body":"app.component(\"${1}\", {\n bindings: {\n message: '='\n },\n template: '<div></div>',\n controller: function () {\n this.message = 'Thomas directive';\n }\n});","rightLabelHTML":"angular-component"},"ATOM_HOME/snippets/angular.cson.angular-filter":{"prefix":"angular-filter","body":"app.filter(\"${1}\", () => {\n return (input, option1) => {\n return input + option1;\n };\n});","rightLabelHTML":"angular-filter"}}}