Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save toddhalfpenny/256d891240c635d9800545a915af98f2 to your computer and use it in GitHub Desktop.
Save toddhalfpenny/256d891240c635d9800545a915af98f2 to your computer and use it in GitHub Desktop.
Angular Controller Sublime Snippet
<snippet>
<content><![CDATA[
/**
* ${1:name} Controller
*
* @description ${2:description}
*/
(function() {
'use strict';
angular
.module('starter.controllers')
.controller('${1:name}Ctrl', ${1:name}Ctrl);
${1:name}Ctrl.\$inject = [];
function ${1:name}Ctrl() {
}
})();
]]></content>
<tabTrigger>angController</tabTrigger>
<scope>source.js</scope>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment