我正试图用Laravel 5设置Angular.
我已经在appServiceProvider中尝试过:
public function boot() { \Blade::setRawTags("[[","]]"); \Blade::setContentTags('<%','%>'); // for variables and all things Blade \Blade::setEscapedContentTags('<%%','%%>'); // for escaped data }
附:
<div> <input type="text" ng-model="yourName" placeholder="Enter a name here"> <h1>Hello,{{ yourName }}!</h1> </div>
但我得到:
Use of undefined constant yourName - assumed 'yourName'...