I need some help, I have an Ionic app with a list of Dribbble users, using their API. When I select the user I want to bring the user detail based on the ID brought by the $stateParams.
I'm new to Angular and Ionic, a help would be awesome! I read about services and child states, but I don't know how to do it properly.
This is the repository: https://github.com/matheusbaumgart/yo-ionic-eyedentify.git If you guys could have a look.
Thanks you very much.
You are on the right path:
function ($scope, $stateParams, Api, $ionicModal) {
$scope.patients = [];
$scope.selected = {};
// assign the variable from the previous state like this, then use it how you need
$scope.pid = $stateParams.patientId;