👷♂️
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
// constants.js | |
export 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() { |
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({...}) | |
class AppComponent { | |
@Input() title = ''; | |
} |
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({...}) | |
class AppComponent { | |
@Input() title: 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
ng new my-app --strict |
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
data:text/html,<body onload="setInterval(()=>document.body.innerText=new Date().toLocaleTimeString())"></body> |