Quantcast
Channel: Moodle for mobile
Viewing all articles
Browse latest Browse all 8481

Re: Controller 'mmSprlitView', required by directive 'mmSplitViewLink', can't be found!

$
0
0
by Zoran Jeremic.  

Hi Dani,


I didn't change anything inside these directives. If I did and it's the reason for problem, I guess I would have the similar problem in the other parts of the application. Anyway, each time I have such a kind of problem, I update moodlemobile2 code from git and use reset --hard to override all local changes, which I did this time too, so I'm sure there is nothing I added in these two directives that caused this.

I don't know if that is relevant, but the scenario where I have this problem is when I shrink the size of chromium screen.

For example, this screen shows scenario where I click one of the links will not result in this error. I guess the reason is that splitView is not triggered at this case.

screen1

When I shrink the screen so it looks like this, the error occurs.

image 2


Actually, for the first link "Personalized Content" there is a different error: "TypeError: Cannot read property 'id' of undefined", which comes from my controller which tries to get course id from the state.

.controller('mmaAdaptedContentCtrl', function($mmaAdaptedCourse,$mmSite,  $mmUtil, $scope, $stateParams,$translate) {
var course = $stateParams.course,
    userid = $stateParams.userid || $mmSite.getUserId(),
    courseid = course.id;

I guess both errors are related to the same problem, but in the other case, my controller doesn't access any state variables.


Thanks,

Zoran




Viewing all articles
Browse latest Browse all 8481

Trending Articles