我为测试编写了一个“对话框”指令,但我不知道如何更新指令中控制器的值
app.controller('testController',function($scope){
$scope.testValue = 'testing';
});
app.directive('testDirectvie',function(){
return function(scope,element,attr){
// this func will open the modal window,
// so how can I can the testValue from controller?Thx all
};
});