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
{ | |
"name": "angular-io-example", | |
"version": "1.0.0", | |
"private": true, | |
"description": "Example project from an angular.io guide.", | |
"scripts": { | |
"lint": "tslint ./src/**/*.ts -t verbose", | |
"start": "ng serve", | |
"test": "ng test", | |
"build": "ng build --prod", |
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
"scripts": { | |
"e2e": "ng e2e" | |
}, | |
"devDependencies": { | |
"protractor": "~5.4.0" | |
}, |
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
{ | |
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", | |
"version": 1, | |
"newProjectRoot": "projects", | |
"projects": { | |
"angular.io-example": { | |
"root": "", | |
"sourceRoot": "src", | |
"projectType": "application", | |
"prefix": "app", |
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
"test": { | |
"builder": "@angular-devkit/build-angular:karma", | |
"options": { | |
"main": "src/test.ts", | |
"polyfills": "src/polyfills.ts", | |
"tsConfig": "src/tsconfig.spec.json", | |
"karmaConfig": "src/karma.conf.js", | |
"styles": [ | |
"src/styles.css" | |
], |
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
{ | |
"name": "angular-io-example", | |
"version": "1.0.0", | |
"private": true, | |
"description": "Example project from an angular.io guide.", | |
"scripts": { | |
"lint": "tslint ./src/**/*.ts -t verbose", | |
"start": "ng serve", | |
"build": "ng build --prod", | |
"ng": "ng", |
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 | |
├── cypress | |
│ ├── fixtures | |
| | └──example.json | |
| ├── integration | |
| | └──examples | |
| ├── plugins | |
| | └──index.json | |
| ├── support | |
| | └──commands.js |
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
//Describe is the block container for the test script. | |
describe('My First Test', function () { | |
//it: will contain the three phases for making a test | |
it('Visit Landing Page', function () { | |
//setup initial state by visiting the home page | |
cy.visit("127.0.0.1:4200/"); | |
//Act: target the searchbox and type magma | |
cy.get('#search-box') | |
.type('magma'); | |
//Assert that the input has the name magma |
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 } from '@angular/core'; | |
import { WindowService } from '../core/window.service'; | |
import { MatSnackBar } from '@angular/material'; | |
import { Router } from '@angular/router'; | |
import * as firebase from 'firebase/app'; | |
import { environment } from '../../environments/environment'; | |
import { AuthService } from '../core/auth.service'; | |
interface User { | |
uid: string; |
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 fxLayout="column" fxLayoutWrap fxLayoutAlign="" style="margin-top: 30px;background-color: #fff; border-radius: 5px;padding-left: 10px;padding-right: 10px;padding-top: 10px; padding-bottom: 10px;"> | |
<div fxFlex="100" *ngIf="!windowRef.confirmationResult"> | |
<form fxLayout="column" fxLayoutAlign="center center"> | |
<div fxFlex='100' style="width: 100%;"> | |
<mat-form-field class="mat-form-input" style="width:100%;"> | |
<span matPrefix>+254 </span> | |
<input matInput placeholder="Phone number" type="number" required name="phone_number" [(ngModel)]="phoneNumber.phone_number"> | |
<mat-icon matSuffix style="color:#ff4081;">phone</mat-icon> | |
</mat-form-field> | |
</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
import { Injectable } from "@angular/core"; | |
import { Router } from "@angular/router"; | |
import * as firebase from "firebase/app"; | |
import { AngularFireAuth } from "angularfire2/auth"; | |
import { Observable } from "rxjs/Observable"; | |
import "rxjs/add/operator/switchMap"; | |
import "rxjs/add/operator/catch"; | |
import "rxjs/observable/of"; | |
import { MatSnackBar } from "@angular/material"; | |
import { environment } from "../../environments/environment"; |
OlderNewer