I want to make a multi page application using angularJS and laravel. However I am facing the problem with routes.
I have a search page
when click on find jobs I want to redirect page to different url
How can I write routes for this using angularjs
var app = angular.module('jobs',
['ngRoute','ngCookies'])
.constant('API_URL', 'http://localhost:8000/');
app.config(['$routeProvider', function($routeProvider){
$routeProvider.
when('/', {
templateUrl:'/app/partials/job/homePage.php'
}).
when('basic-search/search', {
templateUrl : '/app/partials/job/basicSearch.php',
controller:'SearchController'
}).
otherwise({
redirectTo:'/home'
});
}]);
However it is loading only home page template
I read http://ift.tt/2jKbA1s
But not able to get how to exactly do this using Laravel.
Can you please help me with this. Thanks!
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2iQh5Nn
via IFTTT
Aucun commentaire:
Enregistrer un commentaire