I'm working with AngularJS Framework and I have a problem... I have a directive that only work when the windows is loaded.
screensCreators.directive('createscreen', function () {
return {
restrict: "A",
transclude: true,
scope: false,
link: function (scope, element, attrs) {
$(window).load(function () {
console.log(scope);
});
};
};
});
When I prove refresh page pressing "F5" or pressing button in bar of browser, my page have a directive and these work fine... but if I refresh or load page from bar, writting url in bar and load... my directive not working because not enter in load event....
why?
thanks