为什么测试不成功呢?
这一节中,=我怎么无法测试成功呢? @可以测试成功
这一节中,=我怎么无法测试成功呢? @可以测试成功
2015-10-10
bookStoreCtrls.controller('testCtrl',['$scope',
function($scope){
$scope.ctrlFlavor = '盛开的鲜花';
$scope.ctrlFlowers = '我是盛开的鲜花22';
}
]);
bookStoreDirectives.directive('drink2',function(){
return {
restrict:'AE',
scope:{
flowers:'='
},
template:'<input type="text" ng-model="flowers"><span>33{{flowers}}</span>'
}
});
<div>Ctrl:<input type="text" ng-model="ctrlFlowers"></div>
directive:<drink2 flowers='{{ctrlFlowers}}'></drink2>
举报