Hi Chang,
I did not dig in very deeply, but when glancing over your code I saw an tremendous lot of $(ele).doStuff(). This will slow things down, and is usually totally not needed in an agnular app. in your component you have direct access to the dom element. Let angular take care of the DOM stuff, and probably you test will speed up quite a bit.
Regards
Sander
--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/o9QT5PhzJbo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
afterViewChecked() {
console.log('I\'m being checked!');
}
tick () {
var c = ++this.count;
this.top = Math.sin(c / 10) * 10;
this.left = Math.cos(c / 10) * 10;
this.color = c % 255;
this.content = c % 100;
window.requestAnimationFrame(() => this.tick());
}let someOutsideFuctionICanReferTo = () => console.log('hi');
zone.bind(someOutsideFuctionICanReferTo) this.zone = new NgZone({enableLongStackTrace: false});
this.zone.bind(window.benchmarkLoop);NgZone.bind(window.benchmarkLoop)Thanks so much for your help!