Skip to content

Commit 1ce0cba

Browse files
committed
- Added ng17 pre-compiled compatibility code
1 parent 32d29d6 commit 1ce0cba

File tree

5 files changed

+35
-0
lines changed

5 files changed

+35
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import {ɵɵclassMap} from '../render3/instructions/styling';
2+
import {ɵɵinterpolate1} from '../render3/instructions/value_interpolation';
3+
4+
/**
5+
* For ng15 and ng17 backward ABI compatibility
6+
*/
7+
export const ɵɵclassMapInterpolate1 = (prefix: string, v0: any, suffix = '') => {
8+
return ɵɵclassMap(ɵɵinterpolate1(prefix, v0, suffix) as string);
9+
};
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/**
2+
* For ng17 backward ABI compatibility
3+
*/
4+
export function ɵɵInputTransformsFeature(): void {}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import {ɵɵproperty} from '../render3/instructions/property';
2+
import {ɵɵinterpolate} from '../render3/instructions/value_interpolation';
3+
4+
/**
5+
* For ng15 and ng17 backward ABI compatibility
6+
*/
7+
export const ɵɵpropertyInterpolate = (propName: string, v0: any) => {
8+
return ɵɵproperty(propName, ɵɵinterpolate(v0));
9+
};
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/**
2+
* For ng17 backward ABI compatibility
3+
*/
4+
export function ɵɵStandaloneFeature(): void {}

packages/core/src/core.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,12 @@ if (typeof ngDevMode !== 'undefined' && ngDevMode) {
142142
);
143143
};
144144
}
145+
146+
/**
147+
* For ng17 backward ABI compatibility
148+
*/
149+
export {InputFlags as ɵɵInputFlags} from './render3/interfaces/input_flags';
150+
export {ɵɵInputTransformsFeature} from './compat/input_transforms_feature';
151+
export {ɵɵStandaloneFeature} from './compat/standalone_feature';
152+
export {ɵɵpropertyInterpolate} from './compat/property_interpolate';
153+
export {ɵɵclassMapInterpolate1} from './compat/class_map_interpolate';

0 commit comments

Comments
 (0)