demo: source code 1: <!DOCTYPE html> 2: <html xmlns="http://www.w3.org/1999/xhtml"> 3: <head> 4: <title></title> 5: 6: <!-- jQuery --> 7: <script src="http://code.jquery.com/jquery-2.0.2.min.js"></script> 8: 9: <!-- Bootstrap --> 10: <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet"> 11: <script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script> 12: 13: <!-- AngularJS --> 14: <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script> 15: 16: </head> 17: <body ng-app="myApp" ng-controller="MainCtrl"> 18: 19: 20: <pre> 21: parentValue: 22: [...]
↧