Here is my app:
Part of my app:
var app = angular.module("app", ["ngRoute",
"ngAnimate"]);
app.config(function($routeProvider) {
$routeProvider.
when("/inicio", {
templateUrl: "inicio.html",
controller: "inicioCtrl",
animate: "slideLeft"
}).
otherwise({
redirectTo: "/inicio"
});
});
app.controller("ViewCtrl", function($scope) {
});
app.directive('colorbox', function() {
return {
restrict: 'AC',
link: function (scope, element, attrs) {
$(element).colorbox(attrs.colorbox);
}
};
});
As you see i have tried setting the directive but i dont know why it does not work...I researched a lot and tried unsuccessfully ways to...
thanks in advace