一個最基本的AngularJS(包含AngularUI)的HTML檔案範本:
<!doctype html> <html ng-app="app"> <head> <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.1.0/css/bootstrap.min.css"> <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/angular.js/1.2.10/angular.min.js"></script> <script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.10.0/ui-bootstrap-tpls.min.js"></script> <script type="text/javascript"> angular.module('app', ['ui.bootstrap']); ... </script> </head> <body> ... </body> </html>
留言