Currently, I am utilizing the angular2-authentication-sample repository for authentication purposes. Although I have not removed the client side jwt_decode and jwt_encode functions from the project, I am encountering an error in the file home.ts
. The error message reads:
(24,42): error TS2339: Property 'jwt_decode' does not exist on type 'Window'.
home.ts
import { Component } from '@angular/core';
import { CORE_DIRECTIVES } from '@angular/common';
import { Router } from '@angular/router';
const styles = require('./home.css');
const template = require('./home.html');
@Component({
selector: 'home',
directives: [ CORE_DIRECTIVES ],
template: template,
styles: [ styles ]
})
export class Home { }