FOSRestBundle “avoid” Javascript eventListener

旧巷老猫 提交于 2019-12-13 03:44:46

问题


I am trying to create a simple CRUD application by using Symfony and AngularJs, My problem is as describe here:

Trying to use $compileProvider, CRUD and bootstraped directive ng-clink failed

When I m trying to load my template (the whole forms without compile) by using :

{{ render(controler('App:getTemplate',{parameters})) }}

when I try whithout rendering it work well and I need to change my template dynamically.

My event listener does not apear over my angularJs diverctives, may this problem apear with FOSRestBundle which may avoid javascript?


回答1:


My mistaque was in my form declaration

symfony with angular form layout as default theme, like that :

error :

ng-model='data['{{ full_name }}']'

soluce ;

ng-model='data["{{ full_name }}"]'

That was stressful



来源:https://stackoverflow.com/questions/45231186/fosrestbundle-avoid-javascript-eventlistener

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!