Ionic Framework Session Controller

Ionic Framework Session Controller

Ionic Framework Session 

Ionic Framework Session Controller is two controllers you create in this module use the Session service defined in the starter.services module. To add starter.services as a dependency to the starter.controller module:

  1. Open conference/www/js/controllers.js
  2. Add starter.services as a dependency to make the Session service available to the controllers:
angular.module('starter.controllers', ['starter.services'])

Implement the Session

  1. In controllers.js, delete PlayListsCtrl (plural)
  2. Replace it with a controller named SessionsCtrl that retrieves the list of conference sessions using the Session service and stores it in a scope variable named sessions:
.controller('SessionsCtrl', function($scope, Session) {
    $scope.sessions = Session.query();
})
or

.controller('SessionCtrl', function($scope, $stateParams, Session) {
    $scope.session = Session.get({sessionId: $stateParams.sessionId});
});
Ionic Framework Session stored and Login your username Ionic Login Authentication Click Here
Ionic Framework Session Controller Dev2Tricks 5 of 5
Ionic Framework Session Controller Ionic Framework Session  Ionic Framework Session Controller is two controllers you create in th...

Share this

Related Posts

Previous
Next Post »