Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Component, OnInit } from "@angular/core";
- import { AuthService } from "~/app/auth.service";
- import { User } from "../../model";
- @Component({
- moduleId: module.id,
- selector: "agro-auth",
- templateUrl: "./auth.component.html",
- })
- export class AuthComponent implements OnInit {
- public user: User;
- constructor(private authService: AuthService) {
- this.authService.checkDevice().subscribe((response) => {
- // tslint:disable-next-line:no-console
- console.log("Z serwisu: ", response);
- });
- }
- public ngOnInit() {
- // tslint:disable-next-line:no-console
- console.log("Component OK");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement