search

Home  >  Q&A  >  body text

angular controller nesting - Stack Overflow

I encountered a problem recently:

I have such a requirement. There are many templates in a main controller, which are called by uirouter based on ID. Each ID corresponds to a controller. Now I need to process each template separately. There is a {{pageTitle}} for each page. Display different values ​​and assign the corresponding value to the title. How to do this?

習慣沉默習慣沉默2746 days ago443

reply all(2)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-19 10:29:17

    If you use uirouter control, you can handle it in the onChangeSuccess listening event

    reply
    0
  • 巴扎黑

    巴扎黑2017-05-19 10:29:17

    The easiest way is to separate the template into an html and embed it with an iframe

    reply
    0
  • Cancelreply