arnaucube
arnaucube/cellMapVisualizerPublic Self-hosted repository
cellMapVisualizer/web/views/navbar.js
web/views/navbar.jsRaw
 1'use strict';
 2
 3angular.module('app.navbar', ['ngRoute'])
 4
 5    .config(['$routeProvider', function($routeProvider) {
 6        $routeProvider.when('/navbar', {
 7            templateUrl: 'views/navbar/navbar.html',
 8            controller: 'NavbarCtrl'
 9        });
10    }])
11
12    .controller('NavbarCtrl', function($scope, $http, $routeParams, $location) {
13        $scope.locationHash = $location.path();
14        $scope.goBack = function() {
15            console.log("goBack");
16            window.history.back();
17        };
18    });