Skip to content

Commit fc9eaae

Browse files
author
Aniket Bansal
committed
- Added ng17 pre-compiled compatibility code
1 parent 1ce0cba commit fc9eaae

3 files changed

Lines changed: 13 additions & 2 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { PendingTasks as ɵPendingTasks } from "../pending_tasks";
2+
3+
export { ɵPendingTasks };
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
import {ɵɵproperty} from '../render3/instructions/property';
2-
import {ɵɵinterpolate} from '../render3/instructions/value_interpolation';
2+
import {ɵɵinterpolate, ɵɵinterpolate1} from '../render3/instructions/value_interpolation';
33

44
/**
55
* For ng15 and ng17 backward ABI compatibility
66
*/
77
export const ɵɵpropertyInterpolate = (propName: string, v0: any) => {
88
return ɵɵproperty(propName, ɵɵinterpolate(v0));
99
};
10+
11+
/**
12+
* For ng15 and ng17 backward ABI compatibility
13+
*/
14+
export const ɵɵpropertyInterpolate1 = (propName: string, prefix: string, v0: any, suffix = '') => {
15+
return ɵɵproperty(propName, ɵɵinterpolate1(prefix, v0, suffix));
16+
};

packages/core/src/core.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,5 +149,6 @@ if (typeof ngDevMode !== 'undefined' && ngDevMode) {
149149
export {InputFlags as ɵɵInputFlags} from './render3/interfaces/input_flags';
150150
export {ɵɵInputTransformsFeature} from './compat/input_transforms_feature';
151151
export {ɵɵStandaloneFeature} from './compat/standalone_feature';
152-
export {ɵɵpropertyInterpolate} from './compat/property_interpolate';
152+
export {ɵɵpropertyInterpolate, ɵɵpropertyInterpolate1} from './compat/property_interpolate';
153153
export {ɵɵclassMapInterpolate1} from './compat/class_map_interpolate';
154+
export {ɵPendingTasks} from './compat/pending_task';

0 commit comments

Comments
 (0)