0

We are developing a crossplatform app with angularjs.

We have made a view which loads multiple controllers when users click a button.

The problem now is, since we are using a custom design and custum javascript to layout the app, that when a view transition takes place; the just imported template isn't being formatted.

We can't do it from css because the dimensions are calculated on the fly.

So we tried to load the setLayout method from the controller, but this is partially working.

When we load the app, the format is correct but when we change the view to another controller, the layout isn't being set immediatly, only when we change controllers again. So we think the controller isn't the place to call the setLayout method.

The question is: How do we run a javascript after the template has been loaded, so we can transition to a fully layout view?

Thanks in advance

barry007
  • 399
  • 1
  • 3
  • 14
  • Maybe, it will help http://stackoverflow.com/questions/13083644/angularjs-animate-ng-view-transitions – Serhii Holinei Sep 08 '14 at 07:35
  • Have you tried the `ng-bind-html` directive? Not sure this addresses your issue completely. If you still have the problem, could you provide more concrete detail (e.g. what do you mean that the template is not formatted) ? – Eric Platon Jan 21 '15 at 00:50

0 Answers0