Angularjs not working inside laravel form
Ad
I have a problem with calling angularjs inside laravel form, this is my code:
{!! Form::open(array('url' => 'widgets/@{{ widget.id }}'!!}
it's throw this error
Error while interpolating: http://localhost:9000/widgets/{{ widget.id }}
is there a way to do it?
Ad
Answer
Ad
The @{{ }} cannot be used in another {{ }} or {!! !!}}. If you want to use it, you have to write "proper html" without the Form Builder, like so (dont forget csrf_field since you're not using the Form Builder) :
<form method="POST" action="widgets/@{{ widget.id }}">
{!! csrf_field() !!}
Ad
source: stackoverflow.com
Related Questions
Ad
- → Make a Laravel collection into angular array (octobercms)
- → Laravel {!! Form::open() !!} doesn't work within AngularJS
- → Angularjs not working inside laravel form
- → Analysis of Flux implementations
- → how to write react component to construct HTML DOM
- → angular ng-repeat and images in a row
- → Conditional BG Color on AngularJS
- → Should I 'use strict' for every single javascript function I write?
- → getting the correct record in Angular with a json feed and passed data
- → "Undefined is not a function" at .toBe fucntion
- → angularjs data binding issue
- → Angular / JavaScript auto hydrate an instance
- → Convert generic text string in json object into valid url using Angular
Ad