search

Home  >  Q&A  >  body text

angular.js - Directive interaction problem, dependent directive not found

I call APPLeft within the appContent directive. Prompt this error: Controller 'appLeft', required by directive 'appContent', can't be found!

Why does appLeft prompt this

phpcn_u1582phpcn_u15822783 days ago608

reply all(1)I'll reply

  • 黄舟

    黄舟2017-05-15 17:15:14

    I found the answer on stackoverflow. You must put app-content in app-left to use it this way, that is:

    <app-left>
        <app-content></app-content>
    </app-left>

    reply
    0
  • Cancelreply