Instantly share code, notes, and snippets.

Embed
What would you like to do?
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