This file contains hidden or 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
this.transitions = new BehaviorSubject<NavigationTransition>({ | |
id: 0, | |
currentUrlTree: this.currentUrlTree, | |
currentRawUrl: this.currentUrlTree, | |
extractedUrl: this.urlHandlingStrategy.extract(this.currentUrlTree), | |
urlAfterRedirects: this.urlHandlingStrategy.extract(this.currentUrlTree), | |
rawUrl: this.currentUrlTree, | |
extras: {}, | |
resolve: null, | |
reject: null, |
This file contains hidden or 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
class ApplyRedirects { | |
private getChildConfig( | |
ngModule: NgModuleRef<any>, | |
route: Route, | |
segments: UrlSegment[] | |
): Observable<LoadedRouterConfig> { | |
if (route.children) { | |
return of(new LoadedRouterConfig(route.children, ngModule)); | |
} |
This file contains hidden or 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
V8_NOINLINE static Type Stats_Runtime_DynamicImportCall( | |
int args_length, | |
Object** args_object, | |
Isolate* isolate | |
) { | |
RuntimeCallTimerScope timer(isolate, RuntimeCallCounterId::kRuntime_DynamicImportCall); | |
TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("v8.runtime"), "V8.Runtime_" Runtime_DynamicImportCall); | |
Arguments args(args_length, args_object); | |
return __RT_impl_Runtime_DynamicImportCall(args, isolate); | |
} |
This file contains hidden or 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 'zone.js'; | |
const myFirstZone = Zone.current.fork({ | |
name: 'моя первая зона' | |
}); | |
console.log(myFirstZone.name); // моя первая зона | |
console.log(myFirstZone.parent === Zone.current); // true |
This file contains hidden or 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 myFirstZone = Zone.current.fork({ | |
name: 'моя первая зона', | |
onInvoke(parentZoneDelegate, _, targetZone, delegate, applyThis, applyArgs, source) { | |
console.log('мы где-то вызвали метод `run`'); | |
return parentZoneDelegate.invoke(targetZone, delegate, applyThis, applyArgs, source); | |
} | |
}); | |
myFirstZone.run(() => { |
This file contains hidden or 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
this._invokeZS = zoneSpec && (zoneSpec.onInvoke ? zoneSpec : parentDelegate._invokeZS); |
This file contains hidden or 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
Zone.__load_patch('timers', function(global) { | |
var set = 'set'; | |
var clear = 'clear'; | |
patchTimer(global, set, clear, 'Timeout'); | |
}); |
This file contains hidden or 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
function patchTimer(window, setName, setClear, nameSuffix) { ... } |
This file contains hidden or 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
interface TaskData { | |
/** | |
* Если это `setInterval`, то `true`, иначе `false` | |
*/ | |
isPeriodic?: boolean; | |
/** | |
* `delay`, который мы передаем вторым аргументом | |
*/ | |
delay?: number; | |
/** |