Liebeszitat Vorschläge eingebaut.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
angular.module('starter.controllers', [])
|
||||
|
||||
.controller('DashCtrl', function($scope,$ionicPopup,$http, $database, $timeout,$rootScope, $cordovaFileTransfer,$cordovaFile,$ionicLoading,$state) {
|
||||
.controller('DashCtrl', function($scope,$ionicPopup,$http, $database, $timeout,$rootScope, $cordovaFileTransfer,$cordovaFile,$ionicLoading,$state,$http) {
|
||||
|
||||
$scope.preis="";
|
||||
$scope.name="";
|
||||
@@ -37,6 +37,8 @@ angular.module('starter.controllers', [])
|
||||
$scope.showrosen = false;
|
||||
$scope.showflatrate = true;
|
||||
|
||||
$scope.zitat='';
|
||||
|
||||
|
||||
|
||||
$scope.show = function() {
|
||||
@@ -72,6 +74,29 @@ $scope.show = function() {
|
||||
};
|
||||
|
||||
|
||||
$scope.loadzitat = function() {
|
||||
|
||||
$http({
|
||||
url: 'http://api.raataar.de/sapientia-web/sapientia-zitationic/67557103d3658523fa63ff3dcd46d8ec/zitat',
|
||||
dataType: 'json',
|
||||
method: 'GET',
|
||||
headers: {
|
||||
"Content-Type": "application/json"
|
||||
}
|
||||
})
|
||||
.success(function(response) {
|
||||
$scope.zitat = response;
|
||||
$scope.freitext='"' + response.zitat_text + '"';
|
||||
})
|
||||
.error(function(response) {
|
||||
alert("Fehler! Besteht eine Verbindung zum Internet?");
|
||||
});
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Produkt-Details abrufen START
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user