Search Posts

Category: ng-init

angularjs and jquery conflict cause chrome stop responsing

<div class=”gridly-static”> <div id={{y.id}} ng-repeat=”y in Categories” ng-init=”initCategories()”> <div class=”title”>{{y.name}}</div> </div> </div> Categories variable is fetched from api service via $http.get(),and ng-init call initCategories is to reset the layout dynamically using jquery-gridly.The combination of two things make my chrome stop responding(The tab also can’t close at all) When I change the Categories to a object(don’t fetch from internet), the code works find. Also, When I don’t init the layout using $(‘xxx’).gridly(), it works too. I […]