Krtko
Krtko

Reputation: 1065

AngularDart View finishes loading

Hi I am trying to load Google Maps into a div. I have it attach itself to the div on "onShadowRoot" however the Div is still not properly laid out at that time. Is there another callback/future that is called when the view is full laid out?

Thanks

Upvotes: 1

Views: 56

Answers (1)

Günter Zöchbauer
Günter Zöchbauer

Reputation: 657028

Wrap your code in new Future(() {your code here});. This allows Angular to complete the current thread of execution before your code is executed.

Upvotes: 1

Related Questions