Advertisement
Guest User

as

a guest
May 25th, 2018
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.69 KB | None | 0 0
  1.  
  2.  
  3. <html>
  4.  
  5. <head>
  6.     <meta name="viewport" content="width=device-width, initial-scale=1">
  7.   <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css">
  8.     <link rel="stylesheet" type="text/css" href="style.css">
  9.     <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
  10.  
  11.     <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js">
  12.     </script>
  13.     <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular-route.js"></script>
  14.  
  15.     <script type="text/javascript">
  16.         var app = angular.module("MyApp", ["ngRoute"]);
  17.         app.config(function($routeProvider){
  18.              $routeProvider.when('/main', {
  19.                 templateUrl : 'main.htm'
  20.              })
  21.              .when('/About', {
  22.                 templateUrl : 'About.htm'
  23.              })
  24.              .when('/Product', {
  25.                 templateUrl : 'weather.htm',
  26.                 controller: 'weatherCtrl'
  27.              })
  28.              .when('/Contact', {
  29.                 templateUrl : 'Contact.htm'
  30.              });
  31.         });
  32.  
  33.         app.controller('weatherCtrl', function($scope){
  34.             scope.title = "Weather";
  35.  
  36.         });
  37.  
  38.     </script>
  39. </head>
  40.  
  41. <body>
  42.  
  43. <div ng-app="MyApp" class="container-fluid">   
  44.     <div class="container">
  45.         <div class="row header">
  46.             <div class="col-12">
  47.                 <h1>Ini Web Burung</h1>
  48.                 <i class="fab fa-android"></i> 
  49.             </div>
  50.         </div>
  51.         <div class="row menu">
  52.             <div class="col-12">
  53.             <a href="#!main">HOME</a>
  54.             <a href="#!About">About</a>
  55.             <a href="#!Product">Product</a>
  56.             <a href="#!Contact" style="float:right">Contact</a>
  57.             </div> 
  58.         </div>
  59.        
  60.     </div> 
  61. </div>
  62.     <ng-view></ng-view>
  63.    
  64.  
  65.  
  66.  
  67. </body>
  68. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement