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

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

$
0
0
by Daniel Palou.  

To anyone with the same problem:

mm-split-view-link has to be a child of mm-split-view directive. Zoran had the following problem:

In template A, he had something like this:

<mm-split-view>

    <a mm-split-view-link="b"></a>

    <a mm-split-view-link="c"></a>

    <a mm-split-view-link="d"></a>

</mm-split-view>

This template is ok, and it worked fine. The problem is that templates B, C and D (from the links above) had mm-split-view-link inside and no mm-split-view directive. Something like this:

Template B


<ion-content>

    <a mm-split-view="e"></a>

</ion-content>

This works on a tablet layout because templates A and B are shown at the same time, so the links in template B are children of template A's mm-split-view. The problem is with phone layout because when you navigate to template B you lose template A's DOM, so the links in template B are left without a mm-split-view, throwing the error specified in this issue.

We suggest to use regular links in template B, trying to use a "3 level" split-view won't work as expected because it wasn't designed like this.

Regards,

Dani


Viewing all articles
Browse latest Browse all 8344

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>