摘要:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>指令学习</title> <script src="https://cdn.bootcss.com/angular.js/1.7.0/angular.min.js"></scrip 阅读全文
摘要:
在指令中scope 定义的值的用法:例如 scope: { local: "@nameprop", secondLocal:"@secondNameprop", secondLocalTest:"@threeNameprop" } local,secondLocal,secondLocalTest这 阅读全文
摘要:
父级像下级传送数据 $scope.$broadcast必须在一个函数中才有效果。 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>AngularJS broadcast译为广播,即上级传递下级。</title> <script 阅读全文