access controller scope from Bootstrap-UI Typeahead template

后端 未结 4 736
青春惊慌失措
青春惊慌失措 2020-12-31 07:07

I am unable to call a controller function from inside a custom-template with ui-typeahead:



        
4条回答
  •  囚心锁ツ
    2020-12-31 08:02

    I also have same problem. I'm not sure but its working.

    You can use double $parent instead of single.

    e.g. $parent.$parent.showItem(eqp.model)

提交回复
热议问题