Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49186

Undefined $scope

$
0
0

@EnFXChile wrote:

Hello I have an app that takes a picture of the camera and stores it in this line:

var url = uploadTask.snapshot.metadata.downloadURLs [0];
$rootScope.myUrl = url;

I have a form that stores the name, email in this line

$scope.formData =
{
name: $ scope.user_username,
email: $ scope.user_email,
}

If I send the form like this at this time, it sends perfectly. But if sending the form by adding the image url like this:

$scope.formData =
{
name: $scope.user_username,
email: $scope.user_email,
myImage: $rootScope.myUrl, // get undefined and not sent form
}

as I can do to save the url in my formData?

Posts: 11

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49186

Trending Articles



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