index.html
!DOCTYPE html>
<html lang="en">
<head>
<Meta charset="UTF-8">
<title>Title</title>
<link rel="stylesheet" href="../lib/bootstrap/css/bootstrap.min.css">
</head>
<body>
<div class="container">
<a name="a" ui-sref="a">123</a>
<a "#" id="example" "btn btn-danger" "popover"
data-content="It's so simple to create a tooltop for my website!"
data-original-title="Twitter Bootstrap Popover">hover for popover</a>
<div ui-view=""></div>
</div>
<script src="../js/require.js" data-main="../js/main"></script>
</body>
</html>
main.js
require.config({ ::{ ::::::}:{ :{ :}:{ :}:{ :[] }:{ :[] } }:[ ] })
bootstrap.js
define([ ](requireng){ require([](document){ ng.bootstrap(document[])}) })
app.js
define([](){ .module([]) .config(($stateProvider$urlRouterProvider){ $urlRouterProvider.when()$urlRouterProvider.otherwise()$stateProvider .state({ ::}) .state({ ::}) }) })原文链接:/angularjs/147276.html