👷♂️
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
bootstrapApplication(AppComponent, { | |
providers: [ | |
provideRouter(appRoutes), | |
] | |
}); |
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
const { readFileSync } = require('fs'); | |
const { execSync } = require('child_process'); | |
const lastVersion = '14.0.0'; | |
const repos = [ | |
'~/Projects/angular', | |
'~/Projects/components', | |
'~/Projects/angular-cli' | |
]; |
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
<link rel="shortcut icon" width=32px> | |
<canvas style="display: none" id="loader" width="16" height="16"></canvas> | |
<script> | |
class Loader { | |
constructor(link, canvas) { | |
this.link = link; | |
this.canvas = canvas; | |
this.context = canvas.getContext('2d'); | |
this.context.lineWidth = 2; |
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
// constants.js | |
export const PI = 3.14159265357989; | |
localStorage.setItem('foo', 'bar'); |
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
(()=>{"use strict";console.log(1+2)})(); |
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
/******/ (() => { // webpackBootstrap | |
/******/ "use strict"; | |
// CONCATENATED MODULE: ./utils.js | |
// utils.js | |
const add = (a, b) => a + b; | |
const subtract = (a, b) => a - b; | |
// CONCATENATED MODULE: ./index.js | |
// index.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
/******/ (() => { // webpackBootstrap | |
/******/ "use strict"; | |
// CONCATENATED MODULE: ./operations.js | |
// utils.js | |
const add = (a, b) => a + b; | |
const subtract = (a, b) => a - b; | |
// CONCATENATED MODULE: ./constants.js | |
const PI = 3.14159265357989; |
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
@Component({ | |
template: '<h1>{{ article.title }}</h1>' | |
}) | |
class ArticleComponent { | |
article: Article | undefined; | |
} |
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 todo of todos"> | |
<h2>{{ todo.title }}</h2> | |
<button *ngIf="user.isAdmin">Edit</button> | |
</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 { HttpClient } from '@angular/common/http'; | |
@Component({...}) | |
export class AppComponent { | |
client: any; | |
constructor(http: HttpClient) { | |
this.client = http; | |
} | |
handleClick() { |
NewerOlder