I currently have a view in Angular where I am trying to run some PHP code to check a database and cookies etc, but unfortunately when I rename the file to view1.php instead of view1.html and also change it in the view1.js to
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/view1', {
templateUrl: 'view1/view1.php',
controller: 'View1Ctrl'
});
}])
The app will load but unfortunately everything that is in the View1Ctrl does not run. Is there any way to fix this? Just simply changing it all back to HTML and it works again. I am using a directive to display a html video from the view1.js
Thanks.