Advertisement
Guest User

Untitled

a guest
Nov 16th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { Component, OnInit } from "@angular/core";
  2. import { AuthService } from "~/app/auth.service";
  3. import { User } from "../../model";
  4.  
  5. @Component({
  6.   moduleId: module.id,
  7.   selector: "agro-auth",
  8.   templateUrl: "./auth.component.html",
  9. })
  10.  
  11. export class AuthComponent implements OnInit {
  12.   public user: User;
  13.  
  14.   constructor(private authService: AuthService) {
  15.  
  16.     this.authService.checkDevice().subscribe((response) => {
  17.       // tslint:disable-next-line:no-console
  18.       console.log("Z serwisu: ", response);
  19.     });
  20.   }
  21.  
  22.   public ngOnInit() {
  23.     // tslint:disable-next-line:no-console
  24.     console.log("Component OK");
  25.   }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement