Permalink
Browse files

Use the new cq.mobile.content-sync-2 clientlib featuring the new (+ i…

…mproved!) ContentSync plugin
  • Loading branch information...
blefebvre committed Sep 18, 2015
1 parent 14c101f commit 339039128956aa2fbb2ff89e0405a3d9772874a8
@@ -7,7 +7,7 @@
cq:lastModifiedBy="admin"
jcr:primaryType="cq:PageContent"
jcr:title="English"
sling:resourceType="mobileapps/components/splash-page"
sling:resourceType="mobileapps/components/splash-page-content-sync-2"
pge-type="[app-content]"
phonegap-exportTemplate="/content/phonegap/kitchen-sink/en/jcr:content/pge-app/app-config">
<image
@@ -2,4 +2,4 @@
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="cq:ClientLibraryFolder"
categories="[apps.brucelefebvre.nav]"
dependencies="[cq.mobile.content-sync]"/>
dependencies="[cq.mobile.content-sync-2]"/>
@@ -23,10 +23,13 @@
* Module to handle general navigation in the app
*/
angular.module('cqAppNavigation', [])
.controller('AppNavigationController', ['$scope', '$window', '$location', '$timeout',
function ($scope, $window, $location, $timeout) {
.controller('AppNavigationController', ['$scope', '$window', '$location', '$timeout', '$rootElement',
function ($scope, $window, $location, $timeout, $rootElement) {
$scope.transition = '';
var contentUpdater = contentUpdate();
var appName = $rootElement.attr('ng-app');
var contentUpdater = contentUpdate({
id: appName
});
/**
* Handle back button
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:primaryType="nt:unstructured"
path="/libs/mobileapps/components/splash-page/clientlibs"
path="/libs/mobileapps/components/splash-page-content-sync-2/clientlibs"
targetRootDirectory="www"
type="clientlib"/>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:primaryType="nt:unstructured"
path="/libs/mobileapps/components/splash-page/clientlibs"
path="/libs/mobileapps/components/splash-page-content-sync-2/clientlibs"
targetRootDirectory="www"
type="clientlib"/>
@@ -2,4 +2,4 @@
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="cq:ClientLibraryFolder"
categories="[apps.brucelefebvre.kitchen-sink.phonegap.util]"
dependencies="[cq.mobile.content-sync]"/>
dependencies="[cq.mobile.content-sync-2]"/>
@@ -3,4 +3,4 @@
jcr:primaryType="cq:ClientLibraryFolder"
categories="[apps.brucelefebvre.kitchen-sink.all]"
dependencies="[ionic-1.0.0-beta.13]"
embed="[cq.mobile.foundation.angular,angular-snap,btford-angular-phonegap,apps.brucelefebvre.kitchen-sink.phonegap.util,apps.brucelefebvre.nav,apps.brucelefebvre.kitchen-sink.phonegap.api,apps.brucelefebvre.kitchen-sink,cq.mobile.content-sync]"/>
embed="[cq.mobile.foundation.angular,angular-snap,btford-angular-phonegap,apps.brucelefebvre.kitchen-sink.phonegap.util,apps.brucelefebvre.nav,apps.brucelefebvre.kitchen-sink.phonegap.api,apps.brucelefebvre.kitchen-sink,cq.mobile.content-sync-2]"/>

0 comments on commit 3390391

Please sign in to comment.