I am new to laravel and angular . I am trying to render a view which is a php file. The .php file is being rendered but the angular expression inside it is not being evaluated.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="http://ift.tt/1K1B2rp" >
<script src="http://ift.tt/1InYcE4"> </script>
<script src='public/AngularSorter.js'></script>
<script src = "http://ift.tt/1MrEm0Z"> </script>
</head>
<body ng-app = 'store'>
<div ng-controller ='SorterController as sorter'>
<p>
{{ 4+4 }}
</p>
</div>
</form>
</body>
</html>
the route is like this
Route::get('/', function () {
return view('Home');
});
Am I missing something? I tried renaming the php file to .html but it doesn't work. why can't the view render .html file??
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1kepBn6
via IFTTT
Aucun commentaire:
Enregistrer un commentaire