我正在尝试在 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'...
\Blade::getTags()
,您会得到什么? - lukasgeiter\Blade::getContentTags()
。 - lukasgeiterstorage/framework/views
中的所有视图编译视图) - lukasgeiter