angular.js:12330 TypeError: Cannot read property 'querySampleTypeAggregated' of undefined
at querySampleTypeAggregat (healthMovement.js:31)
at moveOut (healthMovement.js:87)
at draw (healthMovement.js:93)
at new (healthMovement.js:140)
at invoke (angular.js:4450)
at Object.instantiate (angular.js:4458)
at angular.js:9014
at Object.self.appendViewElement (ionic-angular.js:6398)
at Object.render (ionic-angular.js:4592)
at Object.init (ionic-angular.js:4512)
copy the healthkit.js into my project,but it created an error when I use window.plugins.healthkit.querySampleTypeAggregated ,someone can help me? thanks!!!
angular.js:12330 TypeError: Cannot read property 'querySampleTypeAggregated' of undefined at querySampleTypeAggregat (healthMovement.js:31) at moveOut (healthMovement.js:87) at draw (healthMovement.js:93) at new (healthMovement.js:140)
at invoke (angular.js:4450)
at Object.instantiate (angular.js:4458)
at angular.js:9014
at Object.self.appendViewElement (ionic-angular.js:6398)
at Object.render (ionic-angular.js:4592)
at Object.init (ionic-angular.js:4512)