Skip to content

Instantly share code, notes, and snippets.

@KamilLelonek
Created November 19, 2014 08:06
Show Gist options
  • Save KamilLelonek/23341b147dee85bfe04c to your computer and use it in GitHub Desktop.
Save KamilLelonek/23341b147dee85bfe04c to your computer and use it in GitHub Desktop.
Shared templates HTML generated file
<body class="templates templates_partials">
<script id="templates/shared/translate/lang_switch.html" type="text/ng-template">
<ul class="lang-switch" ng-controller="TranslateCtrl as translate">
<li class="lang-switch__lang lang-switch__lang--en">
<button class="lang-switch__btn" ng-class="{'lang-switch__lang--current': translate.isCurrentLang('en')}" ng-click="translate.changeLang('en')" type="button"></button>
</li>
<li class="lang-switch__lang lang-switch__lang--pl">
<button class="lang-switch__btn" ng-class="{'lang-switch__lang--current': translate.isCurrentLang('pl')}" ng-click="translate.changeLang('pl')" type="button"></button>
</li>
</ul>
</script>
<!-- ... -->
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment