Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Online AngularJS Editor

<!doctype html>
<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.3/angular.min.js"></script>
  </head>
<body ng-app="myApp">
<h1>Book your Tickets</h1>
<h>From:<input type="text" ng-model="frm"><br>
<br><h>To:<input type="text" ng-model="dest"><br>
<br><h>Date:<input type="date" ng-model="date">


<p><a href="#/!book">Book</a></p>


<div ng-view></div>

<script>
var app = angular.module("myApp", ["ngRoute"]);
app.config(function($routeProvider) {
    $routeProvider
    .when("/book", {
        templateUrl : "bookdet.htm"
    
    });
});
</script>

</body>
</html>
</html>

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.