I have a blade view in laravel 5 along with my angular code as below
<li ng-if="data != null" class="item" style="height: 120px;" data-ng-repeat="page in data | filter:searchDefaultTerm">
<div style="margin: 5px;">
<a href="<% page.guid %>"><span class="fa fa-eye pull-right"></span></a>
<a href="{{ url('/administrator/page/edit/'.'<% page.id %>')}}" ><i class="fa fa-pencil pull-right"></i></a>
<a class="trashButton" href="{{ url('/administrator/page/delete/'.'<% page.id %>') }}" style="cursor: pointer;"><i class="fa fa-trash-o pull-right">< /i></a>
</div>
<img class="pull-left product-img" style="margin: 5px;" height="100" width="100" src="<% page.image %>">
<a class="product-title "><% page.title %></a><br/>
<em style="margin: 5px;">Menu Title:</em> <a class="product-title "><% page.menuTitle %></a><br/>
<em style="margin: 5px;">Added Date:</em> <a class="product-title "><% page.addedDate %></a><br/>
<em style="margin: 5px;">Updated Date:</em> <a class="product-title "><% page.updateDate %></a>
</li>
Everything was woking fine in the angular development server but as soon as I moved it to wamp server I am getting the following error
Use of undefined constant page - assumed 'page'
This is my angular code defining new start and end symbol for angular I dont have error with in my console caused due to angular
/*
* Angular App
*/
var app = angular.module('customApp',[],function($interpolateProvider){
$interpolateProvider.startSymbol('<%');
$interpolateProvider.endSymbol('%>');
});
I have also tried this
var app = angular.module('customApp', []);
app.config(function($interpolateProvider) {
$interpolateProvider.startSymbol('<%');
$interpolateProvider.endSymbol('%>');
});
This is the screenshot of error I have received