我需要一些帮助,我有一个Ionic应用,其中包含使用Dribbble用户的API列表。当我选择用户时,我想根据$ stateParams带来的ID来提供用户详细信息。
我是Angular和Ionic的新手,这将是非常有用的帮助!我读到有关服务和子状态的信息,但我不知道如何正确执行。
这是存储库:https : //github.com/matheusbaumgart/yo-ionic-eyedentify.git如果你们可以看一下。
非常感谢你。
您走在正确的道路上:
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;
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句