Skip to content

Instantly share code, notes, and snippets.

@noherczeg
Created January 26, 2015 02:56
Show Gist options
  • Select an option

  • Save noherczeg/ee6aeae788d500d8ea5f to your computer and use it in GitHub Desktop.

Select an option

Save noherczeg/ee6aeae788d500d8ea5f to your computer and use it in GitHub Desktop.
put this in the head section, so angular can hide templates properly before values are initialized
<style>
/* This helps the ng-show/ng-hide animations start at the right place. */
/* Since Angular has this but needs to load, this gives us the class early. */
[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], [ng-hide], .ng-cloak, .x-ng-cloak, .ng-hide {
display: none !important;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment