on 10-27-2015 7:08 PM
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
You can extend the controller using the extend() method to achieve it. Simple example for extending a controller JS Bin - Collaborative JavaScript Debugging
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.