Storage list in Buys
This commit is contained in:
@@ -8,6 +8,8 @@ angular.module('starter.controllers', [])
|
||||
$scope.items=[];
|
||||
$scope.item=[];
|
||||
|
||||
$scope.items=$localstorage.getObject('items');
|
||||
|
||||
$scope.validate = function() {
|
||||
|
||||
var link = 'http://api.raataar.de/rosen/vorschau.php';
|
||||
@@ -76,18 +78,16 @@ angular.module('starter.controllers', [])
|
||||
|
||||
})
|
||||
|
||||
.controller('BuysCtrl', function($scope) {
|
||||
// With the new view caching in Ionic, Controllers are only called
|
||||
// when they are recreated or on app start, instead of every page change.
|
||||
// To listen for when this page is active (for example, to refresh data),
|
||||
// listen for the $ionicView.enter event:
|
||||
//
|
||||
//$scope.$on('$ionicView.enter', function(e) {
|
||||
//});
|
||||
|
||||
|
||||
.controller('BuysCtrl', function($scope, $localstorage,$location) {
|
||||
$scope.items=[];
|
||||
$scope.items=$localstorage.getObject('items');
|
||||
|
||||
$scope.$on('$stateChangeSuccess', function(event, toState, toParams, fromState, fromParams) {
|
||||
if ($location.path() == "/tab/buys") {
|
||||
$scope.items=$localstorage.getObject('items');
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
})
|
||||
|
||||
|
||||
@@ -4,11 +4,12 @@
|
||||
<div style="padding-bottom:15px;">
|
||||
<div class="item item-divider oswald">Hier können Sie Ihre gekauften Rosen ansehen oder nochmals versenden!</div>
|
||||
|
||||
<ul class="list">
|
||||
<a class="item item-thumbnail-left item-button-right" href="#">
|
||||
<ul class="list">
|
||||
|
||||
<a class="item item-thumbnail-left item-button-right" href="#" ng-repeat="i in items" ng-model="items">
|
||||
<img src="img/rose1.png">
|
||||
<h1>Platzhalter Liebster </h1>
|
||||
<p>Platzhalter persönliche Nachricht </p>
|
||||
<h1>{{i.name}}</h1>
|
||||
<p>{{i.freitext}} </p>
|
||||
<div class="buttons" style="margin-top:30px;">
|
||||
<button class="button button-small" >
|
||||
<i class="icon ion-image"> Vorschau</i>
|
||||
@@ -21,87 +22,7 @@
|
||||
</a>
|
||||
|
||||
|
||||
<a class="item item-thumbnail-left item-button-right" href="#">
|
||||
<img src="img/rose1.png">
|
||||
<h1>Platzhalter Liebster </h1>
|
||||
<p>Platzhalter persönliche Nachricht </p>
|
||||
<div class="buttons" style="margin-top:30px;">
|
||||
<button class="button button-small" >
|
||||
<i class="icon ion-image"> Vorschau</i>
|
||||
</button>
|
||||
<button class="button button-small">
|
||||
<i class="icon ion-android-share-alt"> Teilen</i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<a class="item item-thumbnail-left item-button-right" href="#">
|
||||
<img src="img/rose1.png">
|
||||
<h1>Platzhalter Liebster </h1>
|
||||
<p>Platzhalter persönliche Nachricht </p>
|
||||
<div class="buttons" style="margin-top:30px;">
|
||||
<button class="button button-small" >
|
||||
<i class="icon ion-image"> Vorschau</i>
|
||||
</button>
|
||||
<button class="button button-small">
|
||||
<i class="icon ion-android-share-alt"> Teilen</i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
<a class="item item-thumbnail-left item-button-right" href="#">
|
||||
<img src="img/rose1.png">
|
||||
<h1>Platzhalter Liebster </h1>
|
||||
<p>Platzhalter persönliche Nachricht </p>
|
||||
<div class="buttons" style="margin-top:30px;">
|
||||
<button class="button button-small" >
|
||||
<i class="icon ion-image"> Vorschau</i>
|
||||
</button>
|
||||
<button class="button button-small">
|
||||
<i class="icon ion-android-share-alt"> Teilen</i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<a class="item item-thumbnail-left item-button-right" href="#">
|
||||
<img src="img/rose1.png">
|
||||
<h1>Platzhalter Liebster </h1>
|
||||
<p>Platzhalter persönliche Nachricht </p>
|
||||
<div class="buttons" style="margin-top:30px;">
|
||||
<button class="button button-small" >
|
||||
<i class="icon ion-image"> Vorschau</i>
|
||||
</button>
|
||||
<button class="button button-small">
|
||||
<i class="icon ion-android-share-alt"> Teilen</i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
<a class="item item-thumbnail-left item-button-right" href="#">
|
||||
<img src="img/rose1.png">
|
||||
<h1>Platzhalter Liebster </h1>
|
||||
<p>Platzhalter persönliche Nachricht </p>
|
||||
<div class="buttons" style="margin-top:30px;">
|
||||
<button class="button button-small" >
|
||||
<i class="icon ion-image"> Vorschau</i>
|
||||
</button>
|
||||
<button class="button button-small">
|
||||
<i class="icon ion-android-share-alt"> Teilen</i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user