As a newcomer to Angular, I've been working on a project to create an app that can answer questions, select images, and send data to the server.
I'm facing some challenges with updating the scope properly when a user selects an image. It seems like the issue lies within the 'CreateCtrl' controller or possibly the 'ImageService' and/or 'FileService'.
To download the Ionic project, click here:
// app.js
angular.module('starter', ['ionic', 'starter.controllers', 'starter.services', 'ngIOS9UIWebViewPatch'])
// code for module
});
// services.js
angular.module('starter.services', ['ngCordova'])
// code for FileService and ImageService
});
// controllers.js
angular.module('starter.controllers', ['ngCordova'])
// code for AppCtrl and CreateCtrl
});
// index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
// header content
</head>
<body ng-app="starter">
<ion-nav-view></ion-nav-view>
</body>
</html>
// create.html
<ion-header-bar class="bar bar-header">
// header content
</ion-header-bar>
<ion-header-bar class="bar bar-subheader">
// subheader content
</ion-header-bar>
<ion-nav-view name="createContent"></ion-nav-view>
// templates/photos.html
<ion-view>
<ion-content class="hidden-backbutton">
//content for adding and displaying images
</ion-content>
<ion-footer-bar align-title="left" class="bar-stable">
//footer buttons and controls
</ion-footer-bar>
</ion-view>
XCode Console Log Output
// log messages from XCode console