Skip to Content
avatar image
Former Member

using abstract controller

HI

I've this very simple MVC code and my question is weather there is a way to create abstract

controller which will have all the code of the current controller and then use it from abstract by inheritance (maybe by prototype)

Regards,

Miley

http://jsbin.com/hojuquzoti/2/edit?html,js,output

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 27, 2015 at 08:08 PM

    You can extend the controller using the extend() method to achieve it. Simple example for extending a controller JS Bin - Collaborative JavaScript Debugging

    Add comment
    10|10000 characters needed characters exceeded