i am trying to make a dynamic website/cms with angularjs.
So i also want to add a way to fetch blogs inside a persific page, normally i would do this with get requests and just get it like that. but now it seems that angular doesn't really like when you do this and so everything gets messed up.
So basicly the thing i am looking for is a way to do: http://example.com/#/news/[BLOGPOST_ID] (where news is content/news.php (see code).
my current reroute:
var app = angular.module('app', [
'ngRoute'
]);
app.config(['$routeProvider', function($routeProvider) {
$routeProvider.
when('/welkom', {templateUrl: 'content/welkom.php'}).
when('/lidworden', {templateUrl: 'content/lidworden.html'}).
when('/news', {templateUrl: 'content/news.php'}).
when('/signup', {templateUrl: 'content/signup.php'}).
when('/login', {templateUrl: 'content/login.html'}).
otherwise({redirectTo: '/welkom'});
}]);
sorry if this has already been asked, i just don't know how to correctly put this question.
EDIT: 'https://stackoverflow.com/a/23663579/3216211 found something here that works fine out of the box, thanks anyways.' Solved.