Answer the question
In order to leave comments, you need to log in
How to implement routing in AngularJS if the view itself is obtained from the RequireJS module received by request?
I ran into a problem: from external *.json in $scope we get the structure by which ng-repeat displays tabs, each tab should display its own ui-view on click (I use angular ui-router).
The resulting *.json in each of the objects contains the "path" key with the value - a link to the "file.js" in which the type module is located:
define([
'backbone'
], function(Bakbone) {
return Backbone.View.extend({
render: function() {
this.$el.html('<div>test</div>');
}
});
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question