【发布时间】:2013-02-04 20:38:52
【问题描述】:
我需要这样的东西,但它不起作用
.directive('dateTime', function(){
return {
restrict: 'E',
replace: true,
scope:'=value',
template: "<div>{{value.format('mmm dd yy')}}"</div>",
// ^here: applying a function to the scope
};
});
【问题讨论】:
标签: angularjs angularjs-directive