Move to angularjs 1.2.0-rc2

This commit is contained in:
Steve Purcell 2013-09-28 08:15:04 +01:00
parent c8874fc478
commit 9def9ba1f4
2 changed files with 6 additions and 5 deletions

View file

@ -54,9 +54,10 @@
</div>
<div view-or-error></div>
</main>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/moment.js/2.0.0/moment.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/lodash.js/1.3.1/lodash.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.0-rc.2/angular.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.0-rc.2/angular-route.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.0.0/moment.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/1.3.1/lodash.min.js"></script>
<script src="js/melpa.js"></script>
<script src="http://platform.twitter.com/widgets.js" type="text/javascript" async="async"></script>
<script type="text/javascript">

View file

@ -8,7 +8,7 @@
// TODO D3 visualisation for deps
// TODO Fix json encoding of versions
var app = angular.module('melpa', []);
var app = angular.module('melpa', ["ngRoute"]);
//////////////////////////////////////////////////////////////////////////////
// SERVICES
@ -172,7 +172,7 @@
return {
template: '<div>' +
'<div class="alert alert-danger" ng-if="routeError"><strong>Error: </strong>{{routeError}}</div>' +
'<div ng-if="!routeError" ng-view><ng-transclude></ng-transclude></div>'+'</div>',
'<div ng-if="!routeError"><div ng-view><ng-transclude></ng-transclude></div></div>'+'</div>',
transclude: true,
link: function(scope) {
$rootScope.$on("$routeChangeError", function (event, current, previous, rejection) {