angular.module("app").
directive("widgetUno", ["$http", function ($http) {
return {
// A whole bunch of crap going on here
},
templateUrl: "widgetUno.html"
};
}]);
... Ve Widget bu kod Dos?
angular.module("app").directive('widgetDos', function($http) {
return function(scope, element, attrs) {
// A whole bunch of crap going on here
};
});
Ben Widget Dos içine Widget Uno gibi bir direktif dönüştürmek çalışıyorum ama templateUrl nerede başvuru? Widget Dos'de bu mümkün mü?