Created
June 29, 2016 13:39
-
-
Save toddhalfpenny/256d891240c635d9800545a915af98f2 to your computer and use it in GitHub Desktop.
Angular Controller Sublime Snippet
This file contains 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
<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