|
|
|
|
|
by greaterweb
4696 days ago
|
|
Once you have 3 different workarounds for what's basically the most fundamental framework feature I wouldn't call ngCloak[1] a work around, it's part of the framework and specifically meant to handle this sort of thing. Use of the ngInclude[2] is more aligned with my personal preference on how I organize and setup my projects. The reality is though, if you are using Angular to drive your entire page (aka, everything is part of a single Angular app), the use of ngView[3] goes hand and hand to work with your routing. This brings in the view template for the route in the same way an ngInclude would for other parts of the page. I'm drawing off my own experience in Angular development and looking at the basic examples given. If there are more complex examples that illustrate UI flicker as a real problem I'd certainly like to see them. [1] http://docs.angularjs.org/api/ng.directive:ngCloak
[2] http://docs.angularjs.org/api/ng.directive:ngInclude
[3] http://docs.angularjs.org/api/ng.directive:ngView |
|