I am familiar with building backbone apps but am trying to convert it to use requirejs, the issue i am facing is when i am trying to extend the parent view, it is undefined
when trying to extend base-view.js to properties-view.js
define(['backbone','underscore','jquery','views/node/base-view'],
function(Backbone, _, $, NodeBaseView){
PropertiesView = NodeBaseView.extend({
});
}
});
Instantiating a child view inside the parent base view
define(['backbone','underscore','jquery','views/node/properites-view'], function(Backbone, _, $, PropertiesView){
NodeBaseView = Backbone.View.extend({
..
new PropertiesView({});
..
});
});
Here NodeBaseView is undefined
when trying to extend it for PropertiesView. Any Help?
Note: I am using AMD versions of backbone and underscore from here https://github.com/amdjs