$("ul#navigation-list a").one("click", function (e) {
$(this).addClass('active');
$(this).siblings().removeClass('active');
$.ajax({
type: "POST",
url: "ajax/"+$(this).attr('content')+".html",
success: function(html){ ... }
});
});
app.directive("name", function () {
controller : function ($scope) {
var self = this;
$scope.toThis = function (name , data ) {
self[name] = data
}
},
link:function(scope,elem,attr,contr){
scope.toThis("slide", elem)
}
}
app.directive("name2", function () {
require : "name",
controller : function () {
//this
},
link:function(scope,elem,attr,contr){
contr.slide
}
}