Skip to content

Commit f0c4454

Browse files
committed
Use relative imports for demo app
1 parent 6c1c309 commit f0c4454

File tree

9 files changed

+15
-21
lines changed

9 files changed

+15
-21
lines changed

src/app/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { NgModule } from '@angular/core';
22
import { BrowserModule } from '@angular/platform-browser';
33
import { HttpClientModule } from '@angular/common/http';
4-
import { AngularTokenModule } from 'angular-token';
4+
import { AngularTokenModule } from '../../projects/angular-token/src/public_api';
55

66
import { AppComponent } from './app.component';
77
import { ExampleModule } from './example/example.module';

src/app/app.routes.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import { RouterModule, Routes } from '@angular/router';
2+
import { AngularTokenService } from '../../projects/angular-token/src/public_api';;
23

34
import { ExampleComponent } from './example/example.component';
45
import { RestrictedComponent } from './restricted/restricted.component';
56

6-
import { AngularTokenService } from 'angular-token';
7-
87
const routerConfig: Routes = [
98
{ path: '', component: ExampleComponent },
109
{ path: 'restricted', component: RestrictedComponent, canActivate: [AngularTokenService] }

src/app/example/change-password/change-password.component.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { Component, OnInit } from '@angular/core';
2-
3-
import { AngularTokenService, UpdatePasswordData } from 'angular-token';
1+
import { Component } from '@angular/core';
2+
import { AngularTokenService, UpdatePasswordData } from '../../../../projects/angular-token/src/public_api';
43

54
@Component({
65
selector: 'app-change-password',

src/app/example/example.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Component, OnInit } from '@angular/core';
2-
3-
import { AngularTokenService } from 'angular-token';
2+
import { AngularTokenService } from '../../../projects/angular-token/src/public_api';
43

54
@Component({
65
selector: 'app-example',

src/app/example/register/register.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Component, OnInit } from '@angular/core';
2-
import { AngularTokenService, RegisterData } from 'angular-token';
1+
import { Component } from '@angular/core';
2+
import { AngularTokenService, RegisterData } from '../../../../projects/angular-token/src/public_api';
33

44
@Component({
55
selector: 'app-register',

src/app/example/sign-in-oauth/sign-in-oauth.component.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { Component, OnInit } from '@angular/core';
2-
3-
import { AngularTokenService } from 'angular-token';
1+
import { Component } from '@angular/core';
2+
import { AngularTokenService } from '../../../../projects/angular-token/src/public_api';
43

54
@Component({
65
selector: 'app-sign-in-oauth',

src/app/example/sign-in/sign-in.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { Component, OnInit } from '@angular/core';
2-
import { AngularTokenService, SignInData } from 'angular-token';
1+
import { Component } from '@angular/core';
2+
import { AngularTokenService, SignInData } from '../../../../projects/angular-token/src/public_api';
33

44
@Component({
55
selector: 'app-sign-in',

src/app/example/sign-out/sign-out.component.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { Component, OnInit } from '@angular/core';
2-
3-
import { AngularTokenService } from 'angular-token';
1+
import { Component } from '@angular/core';
2+
import { AngularTokenService } from '../../../../projects/angular-token/src/public_api';
43

54
@Component({
65
selector: 'app-sign-out',

src/app/example/validate-token/validate-token.component.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { Component, OnInit } from '@angular/core';
2-
3-
import { AngularTokenService } from 'angular-token';
1+
import { Component } from '@angular/core';
2+
import { AngularTokenService } from '../../../../projects/angular-token/src/public_api';
43

54
@Component({
65
selector: 'app-validate-token',

0 commit comments

Comments
 (0)