Should've mentioned that I've tried just about every permutation of ng-if, 
ng-show, ng-hide, and ng-cloak for that second bit.


On Friday, January 16, 2015 at 12:21:04 AM UTC-8, Jonathan Price wrote:
>
> The people using this code have a pretty slow internet connection (like 
> 900kbps down), and it's wreaking a little havoc on some seemingly simple 
> thing.
>
> I've got something like this in my page:
>
> <div ng-if="loaded.loaded" ng-controller="NoteCategorySectionController">
>                 <div xmd-note-edit note-type="{{noteType.NOTETYPE}}"></div>
> </div>
> <div ng-if="loaded.loaded">
>                 <div 
> ng-include="'assets/partials/noteTypeEditLink.html'"></div>
> </div>
>
>
> The first directive is a pretty simple template directive.  Just used to 
> encapsulate a table.
> The ng-include is something like this:
> <a class="body" ng-click="exposeNoteEdit(noteType)" 
>     value="test">Add {{noteType.ABBREVIATION === '' ? noteType.NOTETYPE : 
> noteType.ABBREVIATION}}</a>
>
>
> The xmd-note-edit directive never flashes code.  Ever.  The ng-include bit 
> flashes code 80% of the time.  I can't for the life of me get it to 
> disappear consistently.
>
> The bit that's in the ng-include used to be directly coded into the page.  
> I thought maybe the html was loading before angular was loaded, thus the 
> constant code flash.  So, I figured putting it in an ng-include would 
> ensure that didn't happen.  Apparently that wasn't the problem.
>
> Also of note, this is NOT an entire angular app.  I'm just including 
> angular on a few pages for some two-way binding.
>
> All suggestions appreciated.
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to