├── .angular-cli.json ├── .editorconfig ├── .gitignore ├── .vscode └── settings.json ├── README.md ├── e2e ├── app.e2e-spec.ts ├── app.po.ts └── tsconfig.e2e.json ├── karma.conf.js ├── package.json ├── protractor.conf.js ├── src ├── app │ ├── app.component.css │ ├── app.component.html │ ├── app.component.spec.ts │ ├── app.component.ts │ ├── app.constants.ts │ ├── app.module.ts │ ├── app.routes.ts │ ├── auth │ │ ├── auth.service.spec.ts │ │ ├── auth.service.ts │ │ ├── authguard.service.spec.ts │ │ ├── authguard.service.ts │ │ ├── roleguard.service.spec.ts │ │ └── roleguard.service.ts │ ├── home │ │ ├── home.component.css │ │ ├── home.component.html │ │ ├── home.component.spec.ts │ │ └── home.component.ts │ ├── index.ts │ ├── instructor │ │ ├── instructor.component.css │ │ ├── instructor.component.html │ │ ├── instructor.component.spec.ts │ │ ├── instructor.component.ts │ │ ├── instructor.service.spec.ts │ │ ├── instructor.service.ts │ │ └── instructor.ts │ ├── login │ │ ├── login.component.css │ │ ├── login.component.html │ │ ├── login.component.spec.ts │ │ └── login.component.ts │ ├── new-instructor │ │ ├── new-instructor.component.css │ │ ├── new-instructor.component.html │ │ ├── new-instructor.component.spec.ts │ │ └── new-instructor.component.ts │ └── profile │ │ ├── profile.component.css │ │ ├── profile.component.html │ │ ├── profile.component.spec.ts │ │ ├── profile.component.ts │ │ └── profile.ts ├── assets │ └── .gitkeep ├── environments │ ├── environment.prod.ts │ └── environment.ts ├── favicon.ico ├── index.html ├── main.ts ├── polyfills.ts ├── styles.css ├── test.ts ├── tsconfig.app.json ├── tsconfig.spec.json └── typings.d.ts ├── tsconfig.json └── tslint.json /.angular-cli.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/.angular-cli.json -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "vsicons.presets.angular": true 3 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/README.md -------------------------------------------------------------------------------- /e2e/app.e2e-spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/e2e/app.e2e-spec.ts -------------------------------------------------------------------------------- /e2e/app.po.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/e2e/app.po.ts -------------------------------------------------------------------------------- /e2e/tsconfig.e2e.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/e2e/tsconfig.e2e.json -------------------------------------------------------------------------------- /karma.conf.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/karma.conf.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/package.json -------------------------------------------------------------------------------- /protractor.conf.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/protractor.conf.js -------------------------------------------------------------------------------- /src/app/app.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/app.component.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/app.component.html -------------------------------------------------------------------------------- /src/app/app.component.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/app.component.spec.ts -------------------------------------------------------------------------------- /src/app/app.component.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/app.component.ts -------------------------------------------------------------------------------- /src/app/app.constants.ts: -------------------------------------------------------------------------------- 1 | export const API_URL: string = 'https://user-authentication-api.now.sh/api'; 2 | -------------------------------------------------------------------------------- /src/app/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/app.module.ts -------------------------------------------------------------------------------- /src/app/app.routes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/app.routes.ts -------------------------------------------------------------------------------- /src/app/auth/auth.service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/auth/auth.service.spec.ts -------------------------------------------------------------------------------- /src/app/auth/auth.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/auth/auth.service.ts -------------------------------------------------------------------------------- /src/app/auth/authguard.service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/auth/authguard.service.spec.ts -------------------------------------------------------------------------------- /src/app/auth/authguard.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/auth/authguard.service.ts -------------------------------------------------------------------------------- /src/app/auth/roleguard.service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/auth/roleguard.service.spec.ts -------------------------------------------------------------------------------- /src/app/auth/roleguard.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/auth/roleguard.service.ts -------------------------------------------------------------------------------- /src/app/home/home.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/home/home.component.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/home/home.component.html -------------------------------------------------------------------------------- /src/app/home/home.component.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/home/home.component.spec.ts -------------------------------------------------------------------------------- /src/app/home/home.component.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/home/home.component.ts -------------------------------------------------------------------------------- /src/app/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/index.ts -------------------------------------------------------------------------------- /src/app/instructor/instructor.component.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/instructor/instructor.component.css -------------------------------------------------------------------------------- /src/app/instructor/instructor.component.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/instructor/instructor.component.html -------------------------------------------------------------------------------- /src/app/instructor/instructor.component.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/instructor/instructor.component.spec.ts -------------------------------------------------------------------------------- /src/app/instructor/instructor.component.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/instructor/instructor.component.ts -------------------------------------------------------------------------------- /src/app/instructor/instructor.service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/instructor/instructor.service.spec.ts -------------------------------------------------------------------------------- /src/app/instructor/instructor.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/instructor/instructor.service.ts -------------------------------------------------------------------------------- /src/app/instructor/instructor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/instructor/instructor.ts -------------------------------------------------------------------------------- /src/app/login/login.component.css: -------------------------------------------------------------------------------- 1 | form { 2 | margin-top: 15px; 3 | } -------------------------------------------------------------------------------- /src/app/login/login.component.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/login/login.component.html -------------------------------------------------------------------------------- /src/app/login/login.component.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/login/login.component.spec.ts -------------------------------------------------------------------------------- /src/app/login/login.component.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/login/login.component.ts -------------------------------------------------------------------------------- /src/app/new-instructor/new-instructor.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/new-instructor/new-instructor.component.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/new-instructor/new-instructor.component.html -------------------------------------------------------------------------------- /src/app/new-instructor/new-instructor.component.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/new-instructor/new-instructor.component.spec.ts -------------------------------------------------------------------------------- /src/app/new-instructor/new-instructor.component.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/new-instructor/new-instructor.component.ts -------------------------------------------------------------------------------- /src/app/profile/profile.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/app/profile/profile.component.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/profile/profile.component.html -------------------------------------------------------------------------------- /src/app/profile/profile.component.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/profile/profile.component.spec.ts -------------------------------------------------------------------------------- /src/app/profile/profile.component.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/profile/profile.component.ts -------------------------------------------------------------------------------- /src/app/profile/profile.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/app/profile/profile.ts -------------------------------------------------------------------------------- /src/assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /src/environments/environment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/environments/environment.ts -------------------------------------------------------------------------------- /src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/favicon.ico -------------------------------------------------------------------------------- /src/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/index.html -------------------------------------------------------------------------------- /src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/main.ts -------------------------------------------------------------------------------- /src/polyfills.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/polyfills.ts -------------------------------------------------------------------------------- /src/styles.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/styles.css -------------------------------------------------------------------------------- /src/test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/test.ts -------------------------------------------------------------------------------- /src/tsconfig.app.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/tsconfig.app.json -------------------------------------------------------------------------------- /src/tsconfig.spec.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/tsconfig.spec.json -------------------------------------------------------------------------------- /src/typings.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/src/typings.d.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chenkie/angular2-user-authentication/HEAD/tslint.json --------------------------------------------------------------------------------