Guest User

app.js

a guest
May 17th, 2017
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var coursemate = angular.module('coursemate', ["ngRoute"]);
  2. coursemate.config(function($routeProvider) {
  3.     $routeProvider
  4.         .when("/", {
  5.             templateUrl : "app/components/feed/index.html",
  6.             controller : "chatCtrl"
  7.         })
  8.         .when("database/:req", {
  9.             templateUrl :  function ($routeParams) {
  10.                                 return 'app/database/database.php?req=' + $routeParams.req;
  11.                             }
  12.         });
  13.  
  14. });
Advertisement
Add Comment
Please, Sign In to add comment