Error: [$compile:multidir] Multiple directives [form, form] asking for 'form' controller on: <form ng-form=“”>

前端 未结 3 1831
忘了有多久
忘了有多久 2021-01-18 05:17

I am getting this error on a form I am building in angularjs.

`Error: [$compile:multidir] Multiple directives [form, form] asking for \'form\' controller on:

<
3条回答
  •  长发绾君心
    2021-01-18 06:07

    You don't need the ng-form if you're using

    as it automatically is hooked up to the ng-form directive. You use either or, not both.

提交回复
热议问题