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 x = 'a'; | |
import(`./lazy-${x}.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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>GistRun</title> | |
</head> | |
<body> | |
<script src="index.js" type="module"></script> | |
</body> | |
</html> |
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
export class CorrelationId { | |
private _nextChildId = 0; | |
constructor(public readonly origin: string) {} | |
nextLevel(): CorrelationId { | |
const next = this.clone(this.toString()); | |
this._nextChildId++; | |
return next; | |
} | |
protected clone(newCorrelationId: string): CorrelationId { |
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
export class CorrelationId { | |
private _nextChildId = 0; | |
constructor(public readonly origin: string) {} | |
nextLevel(): CorrelationId { | |
const next = this.clone(this.toString()); | |
this._nextChildId++; | |
return next; | |
} | |
protected clone(newCorrelationId: string): CorrelationId { |
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 | |
// app.module.ts | |
import { BrowserModule } from '@angular/platform-browser'; | |
import { NgModule } from '@angular/core'; | |
import { AppRoutingModule } from './app-routing.module'; | |
import { AppComponent } from './app.component'; | |
import { FeatureModule } from './feature.module.ts'; | |
@NgModule({ | |
declarations: [ |
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 { normalizeEventName } from './event.js' | |
/** | |
* Set of most popular simple attributes. | |
*/ | |
const standardAttrs = { | |
class: true, | |
id: true, | |
type: true, | |
value: 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
// TODO this will be removed after: https://github.com/angular/angular-cli/issues/8046 | |
const replace = require('replace-in-file'); | |
const filesToFix = [ | |
{ | |
files: 'node_modules/@angular/cli/models/webpack-configs/typescript.js', | |
from: [/\.ts\$/g, /\\.ts\)\$/], | |
to: ['.(ts|tsx)$', '\\.ts|\\.tsx)$'] | |
}, | |
{ |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Proxy Sam ?</title> | |
</head> | |
<body> | |
<script> | |
/// UTILS CODE |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<script src="bower_components/system.js/dist/system.js"></script> | |
</head> | |
<body> | |
<script> | |
System.config({ | |
baseURL: '.', | |
defaultJSExtensions: true |