import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-bucketlists',
  templateUrl: './bucketlists.component.html',
  styleUrls: ['./bucketlists.component.css']
})
export class BucketlistsComponent implements OnInit {

  constructor() { 
  		console.log(localStorage.getItem('currentuser'))
  }

  ngOnInit() {
  	console.log(localStorage.getItem('currentuser'));
  }

}

import { Component, OnInit } from '@angular/core';
import { NgForm} from '@angular/forms';
import { AuthService} from '../services/auth.service';
import { Http, Response } from '@angular/http';
import { Router } from '@angular/router';
import { BucketlistsService } from '../services/bucketlists.service'


@Component({
  selector: 'app-bucketlists',
  templateUrl: './bucketlists.component.html',
  styleUrls: ['./bucketlists.component.css']
})
export class BucketlistsComponent implements OnInit {

  constructor(private authService: AuthService,
			  private router: Router,
			  private bucketlistsService: BucketlistsService
			  ) { 
  		
  }

  ngOnInit() {
  	
  }

}

Set console log to see whther bucketlists cn retrive tokenfrom localStorage
Set console log to see whther bucketlists cn retrive tokenfrom localStorage
