Created
June 29, 2016 13:40
-
-
Save toddhalfpenny/fa389d0af7d56220a7747f62120268a3 to your computer and use it in GitHub Desktop.
Angular Service 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} Factory | |
* | |
* @description ${2:description} | |
*/ | |
(function() { | |
'use strict'; | |
angular | |
.module('starter.services') | |
.factory('${1:name}Service', ${1:name}Service); | |
${1:name}Service.\$inject = []; | |
function ${1:name}Service() { | |
return { | |
}; | |
} | |
})(); | |
]]></content> | |
<tabTrigger>angService</tabTrigger> | |
<scope>source.js</scope> | |
</snippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment