Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
  <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.1/angular.min.js"></script>
</head>
<body ng-app="theApp">
  <div>
    <ul>
      <li>
        <a href="#/transportation/planes">Planes</a>
      </li>
      <li>
        <a href="#/transportation/trains">Trains</a>
      </li>
      <li>
        <a href="#/transportation/automobiles">Automobiels</a>
      </li>
    </ul>
  </div>
  <div ng-view>
    
  </div>
</body>
</html>
 
var theApp = angular.module('theApp', []);
  theApp.config(['$routeProvider', function($routeProvider) {
  $routeProvider
  .when(
    '/transportation/planes',
    {
      templateUrl: '/ONUdenU/1',
      controller: PlaneCtrl
    }
  )
  .when(
    '/transportation/trains',
    {
      templateUrl: '/#',
      controller: TrainCtrl
    }
  )
  .when(
    '/transportation/automobiles',
    {
      templateUrl: '/#',
      controller: AutoCtrl
    }
  ).otherwise(
    {
      redirectTo: '/#'
    }
  );
}]);
function PlaneCtrl ($scope, $location){
  console.log($location.path());
}
function TrainCtrl ($scope, $location){
  console.log($location.path());
}
function AutoCtrl ($scope, $location){
  console.log($location.path());
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
queuehammerpro
0viewers