Skip to content

Instantly share code, notes, and snippets.

@kentcdodds
Created November 25, 2015 01:48
Show Gist options
  • Save kentcdodds/4fcc17f761b3dd9fdb63 to your computer and use it in GitHub Desktop.
Save kentcdodds/4fcc17f761b3dd9fdb63 to your computer and use it in GitHub Desktop.
ng-nebraska talk files - Directives - The Importance of Learning JavaScript and staying Marketable
import translations from 'my-translation-module'
angular.module('emojiApp')
.factory('emojiChooser', emojiChooser)
function emojiChooser() {
return {
template: `
<div>
${translations('some.translation.key')}
<!-- more stuff -->
</div>
`,
// more stuff
}
}
angular.module('emojiApp')
.factory('emojiChooser', emojiChooser)
function emojiChooser() {
return {
template: `
<div>
{{::'some.translation.key' | translate}}
<!-- more stuff -->
</div>
`,
// more stuff
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment