本文整理汇总了TypeScript中@angular/core.NgZone.isInAngularZone方法的典型用法代码示例。如果您正苦于以下问题:TypeScript NgZone.isInAngularZone方法的具体用法?TypeScript NgZone.isInAngularZone怎么用?TypeScript NgZone.isInAngularZone使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类@angular/core.NgZone
的用法示例。
在下文中一共展示了NgZone.isInAngularZone方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: spy
autofillStream.subscribe(() => spy(NgZone.isInAngularZone()));
示例2: spy
const subscription = ruler.change(0).subscribe(() => spy(NgZone.isInAngularZone()));
示例3: spy
const subscription = overlayRef.detachments().subscribe(() => spy(NgZone.isInAngularZone()));
示例4: spy
focusMonitor.monitor(buttonElement).subscribe(() => spy(NgZone.isInAngularZone()));
示例5: value
@Input()
set value(v: number) { expect(NgZone.isInAngularZone()).toBe(true); }
示例6: runNgZoneNoLog
runNgZoneNoLog(() => { expect(NgZone.isInAngularZone()).toEqual(true); });
示例7: it
it('should return whether the code executes in the inner zone', () => {
expect(NgZone.isInAngularZone()).toEqual(false);
runNgZoneNoLog(() => { expect(NgZone.isInAngularZone()).toEqual(true); });
}, testTimeout);
示例8: expect
events.on(element, 'click', () => {
expect(NgZone.isInAngularZone()).toBe(true);
counter++;
});