I have a mean stack in my program goes like this:
view:
<div class="container" data-ng-controller="HomeController">
<div class="swiper-wrapper">
<div class="swiper-slide" ng-repeat="player in data.user.myClub.myPlayers">
<div class="player">
<div class="player_name">someone</div>
<img ng-src="modules/core/img/client/slider/player_on.png" alt="">
<div class="arrow"></div>
</div>
</div>
</div>
</div>
In the controller i have a jquery plugin (swapper) which should see a number of div with certain class and then compile them, problem is sometime the view is still not ready...
I have read something like this:
function SomeController($scope) {
$scope.$on('$viewContentLoaded', function() {window.scrollTo(0,90);});
}
It doesn't seem to work properly... What are my options here?