Parent directive controller undefined when passing to child directive

前端 未结 2 954
迷失自我
迷失自我 2021-01-28 09:02

I asked general question here in this post. I\'ve got answer with working example; however when I try to use this example to modify existing code, I get error. See my code below

2条回答
  •  执念已碎
    2021-01-28 09:55

    You have a typo in your code:

    required:'^^tmpMenu',
    

    change it to

    require:'^^tmpMenu',
    

    Check this plunkr

    https://plnkr.co/edit/DgyW3OFgr1GyAR8fuATi?p=preview

提交回复
热议问题