Skip to content

Commit a20ebef

Browse files
Updated everything to latest version | Cleaned up repo | Closes #10
1 parent 6e67080 commit a20ebef

23 files changed

+2881
-622
lines changed

.editorconfig

Lines changed: 0 additions & 19 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
.idea
22
node_modules
3-
jspm_packages
43
npm-debug.*
5-
link-checker-results.txt
64
app/**/*.js
75
*.js.map
8-
e2e/**/*.js
9-
e2e/**/*.js.map
10-
_test-output
11-
_temp
126
dist/**/*.js
137
app/services/secret.service.ts

.travis.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

LICENSE renamed to LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License
22

3-
Copyright (c) 2014-2016 Google, Inc.
3+
Copyright (c) 2017 Ranveer Aggarwal.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
# ng2-adal Quickstart
1+
# Angular 2/4 ADAL Quickstart
22

3-
The very well known updated Angular Quickstart repository updated with ng2-adal, a module based on angular2-adal, a very well written library that is known to cause some problems because of rapid breaking changes in Angular.
4-
5-
This one works and I am currently using this for a personal project.
3+
An Angular quickstart with ng2-adal (a module based on angular2-adal) plugged in.
64

75
Please let me know in case of bugs/issues.
86

7+
## Changelog
8+
9+
### v2.0.0
10+
11+
This repository has been updated to use Angular v4 and ng2-adal v2.0.0. Since there were no tests written for the quickstart example, I have removed them - you can integrate your own testing framework.
12+
913
## How to Use
1014

1115
1. Rename app/services/secret.service.ts.template to app/services/secret.service.ts and add your tenant and client ID.
@@ -15,4 +19,14 @@ Please let me know in case of bugs/issues.
1519

1620
## Getting Token as a String
1721

18-
Use `services/auth.service.ts`. This token needs to be passed as a header for REST service authentication.
22+
Use `services/auth.service.ts`. This token needs to be passed as a header for REST service authentication.
23+
24+
## Contributing
25+
26+
I am not actively maintaining this repository (although, I will update it once in a while in case of breaking changes in the library or a major update).
27+
If you're interested in contributing, do raise an issue/PR and have a look at the CONTRIBUTING.md.
28+
29+
Here's what you could help me do:
30+
- Webpack integration
31+
- Gulp/Grunt/Bower integration
32+
- Tests/CI

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

4-
import {AdalService} from 'ng2-adal/core';
4+
import {AdalService} from 'ng2-adal/dist/core';
55
import {SecretService} from './services/secret.service';
66

77
import { AppComponent } from './components/app.component';

app/authentication/logged-in.guard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Injectable } from '@angular/core';
22
import { Router, CanActivate } from '@angular/router';
3-
import {AdalService} from 'ng2-adal/core';
3+
import {AdalService} from 'ng2-adal/dist/core';
44

55
@Injectable()
66
export class LoggedInGuard implements CanActivate {

app/components/app.component.spec.ts

Lines changed: 0 additions & 33 deletions
This file was deleted.

app/components/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {Component, OnInit} from '@angular/core';
22
import {SecretService} from "../services/secret.service";
3-
import {AdalService} from "ng2-adal/services/adal.service";
3+
import {AdalService} from "ng2-adal/dist/services/adal.service";
44
import {Router} from "@angular/router";
55

66
@Component({

app/components/home.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {Component} from '@angular/core';
2-
import {AdalService} from 'ng2-adal/core';
2+
import {AdalService} from 'ng2-adal/dist/core';
33

44
@Component({
55
selector: 'home',

0 commit comments

Comments
 (0)