This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form (ngSubmit)="onSignUpSubmit()" #f="ngForm" > | |
<div class="row"> | |
<div class="input-field col s12"> | |
<input id="email" | |
type="email" | |
required |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Component, OnInit, Output, EventEmitter} from '@angular/core'; | |
import {Angular2TokenService} from "angular2-token"; | |
@Component({ | |
selector: 'app-login-form', | |
templateUrl: './login-form.component.html', | |
styleUrls: ['./login-form.component.sass'] | |
}) | |
export class LoginFormComponent implements OnInit { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form (ngSubmit)="onSignInSubmit()" #f="ngForm" > | |
<div class="row"> | |
<div class="input-field col s12"> | |
<input id="email" | |
type="email" | |
required |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="modal" materialize="modal" [materializeActions]="modalActions"> | |
<div class="modal-content"> | |
<div class="row"> | |
<div class="row"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Component, OnInit, Input, EventEmitter} from '@angular/core'; | |
import {MaterializeAction} from "angular2-materialize"; | |
@Component({ | |
selector: 'app-auth-dialog', | |
templateUrl: './auth-dialog.component.html', | |
styleUrls: ['./auth-dialog.component.sass'] | |
}) | |
export class AuthDialogComponent implements OnInit { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<div class="col s12"> | |
<h1> Welcome</h1> | |
<p> | |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi feugiat, dolor a aliquam ultrices, turpis nisl maximus justo, nec semper augue dolor vitae orci. Curabitur egestas posuere mauris. Quisque varius erat ac pharetra posuere. Nulla faucibus, ex in dictum porta, dui sapien vehicula nulla, nec venenatis enim purus quis justo. Sed luctus luctus aliquet. Etiam tristique feugiat risus in hendrerit. Mauris lobortis dui nec blandit fermentum. Pellentesque placerat, nunc pellentesque fringilla convallis, elit elit ultricies urna, in vehicula arcu metus efficitur metus. Integer efficitur ipsum sit amet risus tristique, congue molestie massa euismod. | |
</p> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<app-toolbar></app-toolbar> | |
<div class="container"> | |
<router-outlet></router-outlet> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="navbar-fixed"> | |
<nav role="navigation"> | |
<div class="nav-wrapper blue "> | |
<a [routerLink]="['']" id="logo-container" class="brand-logo">Rails & Angular Auth</a> | |
<ul class="right hide-on-med-and-down"> | |
<li> <a>LOGIN</a></li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from '@angular/core'; | |
import {Angular2TokenService} from "angular2-token"; | |
import {environment} from "../environments/environment"; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.sass'] | |
}) | |
export class AppComponent { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component } from '@angular/core'; | |
import {Angular2TokenService} from "angular2-token"; | |
import {environment} from "../environments/environment"; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.sass'] | |
}) | |
export class AppComponent { |