I've made $(document).foundation()
fire on viewContentLoaded
but for some reason it still does not run:
var myApp = angular.module("myApp", []).run(function($rootScope) {
$rootScope.$on('$viewContentLoaded', function () {
console.log('loaded!');
$(document).foundation();
});
});
See the demo here: http://jsfiddle.net/UpwvU/
I've followed several answers from this question but none of them made me succeed.