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
/* jQuery */ | |
someElement.text(); | |
someElement.text(`New content`); | |
someElement.html(); | |
someElement.html(`New content`); | |
/* JavaScript */ | |
someElement.textContent; | |
someElement.textContent = `New content`; |
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/ | |
|- app.module.ts | |
|- app-routing.module.ts | |
|- core/ | |
|- auth/ | |
|- auth.module.ts (optional since Angular 6) | |
|- auth.service.ts | |
|- index.ts | |
|- othermoduleofglobalservice/ | |
|- ui/ |
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('Account', () => { | |
it('should register successfully', () => { | |
const email = `test_${Date.now()}@example.com`; | |
const password = 'test'; | |
cy.visit('/account/register'); | |
cy.get('input[type="email"]').type(email); |
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 { browser, $, ExpectedConditions } from 'protractor'; | |
describe('Account', () => { | |
it('should register successfully', async () => { | |
const email = `test_${Date.now()}@example.com`; | |
const password = 'test'; | |
await browser.get('/account/register'); |
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
Show hidden characters
{ | |
"root": true, | |
"extends": [ | |
"eslint:recommended", | |
"plugin:@typescript-eslint/recommended", | |
"plugin:cypress/recommended" | |
] | |
} |
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
{ | |
"root": true, | |
"ignorePatterns": [ | |
"projects/**/*" | |
], | |
"overrides": [ | |
{ | |
"files": [ | |
"*.ts" | |
], |
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
{ | |
"angular.experimental-ivy": true | |
} |
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
{ | |
"angularCompilerOptions": { | |
"strictInjectionParameters": true, | |
"strictTemplates": true, | |
"strictInputAccessModifiers": true | |
} | |
} |
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, Inject, Optional } from '@angular/core'; | |
import { HttpInterceptor, HttpHandler, HttpRequest } from '@angular/common/http'; | |
@Injectable() | |
export class UniversalInterceptor implements HttpInterceptor { | |
constructor(@Optional() @Inject('serverUrl') protected serverUrl: string) {} | |
intercept(req: HttpRequest<any>, next: HttpHandler) { |
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 *ngFor="let movie of movies"> | |
<h2>{{movie.title}}</h2> | |
<p>{{movie.description}}</p> | |
</div> |
NewerOlder