use $location to navigate
This commit is contained in:
parent
bafc9a9997
commit
9a5bcc5a65
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,8 @@
|
|||
<body>
|
||||
<div class="main-header" ng-controller="navigation as n">
|
||||
<input type="button" id="events-button" ng-click="n.go('/events')" class="btn btn-link" value="Events" />
|
||||
<input type="button" id="persons-button" ng-click="n.go('/persons')" class="btn btn-link" value="Persons" />
|
||||
<input type="button" id="new-event-button" ng-click="n.go('/new-event')" class="btn btn-link" value="Add Event" />
|
||||
<input type="button" id="persons-button" ng-click="n.go('/new-person')" class="btn btn-link" value="Add Persons" />
|
||||
</div>
|
||||
|
||||
<div ng-view></div>
|
||||
|
|
Loading…
Reference in a new issue