Skip to content

Instantly share code, notes, and snippets.

@toddhalfpenny
Created June 29, 2016 13:40
Show Gist options
  • Save toddhalfpenny/fa389d0af7d56220a7747f62120268a3 to your computer and use it in GitHub Desktop.
Save toddhalfpenny/fa389d0af7d56220a7747f62120268a3 to your computer and use it in GitHub Desktop.
Angular Service Sublime Snippet
<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