編輯 - 增加了一個plunkrhttp://plnkr.co/edit/euD4FG?p=previewNG-航線範圍之外處理
的RouteController是沒有得到所謂的,請看看
小提琴:
http://jsfiddle.net/smartdev101/tv1p9n4h/
angular.module(this.constructor.NAME, ['ngRoute'])
.config(function($routeProvider){
self.config($routeProvider)
})
.controller("RouteController", function($scope, $routeParams){
self.routeController($scope, $routeParams)})
angular.bootstrap(document.getElementById("browser"), [this.constructor.NAME]);
});
HTML
<div id="browser"></div>
<ul>
<li>
<a href="#/attendees/3" target="_self">Racu, Cristian</a>
</li>
<li>
<a href="#/attendees/4" target="_self">Shnider, Brent</a>
</li>
<li>
<a href="#/attendees/6" target="_self">Suess, Mike</a>
</li>
</ul>
工作? – ankur 2014-11-04 05:34:23
什麼是this.constructor? – Phix 2014-11-04 05:38:19
沒有ng-app,我手動引導角 – user2727195 2014-11-04 06:10:27