Related Posts

Angularjs directive to show loader for image

Here you go for the directive to show loader for images in your angularjs application. Inject the module “sesu.imageloader” in your main app module and start using…

jQuery plugin for expanding search bar

I have created a jQuery plugin to handle expand and close functionality of searchbar. This would help some to minimize their work, since it is straight forward…

Angularjs fallback image directive

Using fallback image with <img> tag is common scenario to show a default image if the original image is not loaded. In angular you can achieve this…

Javascript Resize Image Proportionally and Clipping

Setting height and width to an image is a general scenario in web development. We need to take in account that image shouldn’t get stretched, it should…

This Post Has 8 Comments

  1. hi, I really need help for this one, how i can define username and password like user=”admin” and password=”12345″, please help me

    1. Hi Gonaçlo,

      Replace $scope.doLogin method with the below code,
      $scope.doLogin = function() {

      if(!angular.isDefined($scope.loginData.username) || !angular.isDefined($scope.loginData.password) || $scope.loginData.username.trim() == “” || $scope.loginData.password.trim() == “”){
      alert(“Enter both user name and password”);
      return;
      }else if($scope.loginData.username.trim() == “admin” && $scope.loginData.password.trim() == “12345”){
      Auth.setUser({
      username: $scope.loginData.username
      });

      $state.go(“app.playlists”);
      }

      };

  2. Thank you subash. i am new to ionic frmwrk. i have tried so many examples and sites, nothing helped me , except yours. hoping you will be uploading new apps and part2.

  3. hii,
    I’m new to ionic I want to make an app were user will login and my user data is in pouchdb how this can be done can you help me

    1. Hi Harsh,

      I am working on the part2 which deals with pouchdb to store and retrieve user info in websql. Will be releasing it this week.

Leave a Reply to Bayu Bismaka Cancel reply

Your email address will not be published. Required fields are marked *