父页面为
<body ng-app="test">
<!-- 顶部加载页面的地方 -->
<div ui-view=""></div>
</body>
子页面为:
<h1>Hello world</h1>
<script>
alert("Hello world");
</script>
使用 ui-router 进行加载
$stateProvider
.state('test', {
url:"/test",
templateUrl:"pages/test.html"
})
页面加载进来了,但是哪个 alert 没有执行,怎么让他执行啊?
