I used CONST_EXPR in beta through;
import {CONST_EXPR} from 'angular/src/facade/lang';
But this does not work with Angular2 RC.0, is there a way to import it somewhere or is there a viable replacement. I used it to integrate with ngModel in my source components to create a value attribute, for example.
const INPUTSWITCH_VALUE_ACCESSOR: Provider = CONST_EXPR( new Provider(NG_VALUE_ACCESSOR, { useExisting: forwardRef(() => InputSwitch), multi: true }));
source share