Guest User

Untitled

a guest
Nov 20th, 2016
128
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import {Component} from "@angular/core";
  2. import {NavController} from 'ionic-angular';
  3. import {UsersService} from '../../providers/users-service/users-service.ts';
  4. @Component({
  5. templateUrl: 'build/pages/home/home.html',
  6. providers: [UsersService]
  7. })
  8. export class HomePage {
  9. public users:any
  10. constructor(private navController: NavController, public usersService: UsersService) {
  11. this.autentication();
  12. }
  13. autentication () {
  14. this.usersService.autentication()
  15. .then(data => {
  16. this.users = data;
  17. alert(data.id);
  18. });
  19. }
  20. }
RAW Paste Data