refactor(ivy): Move instructions back to ɵɵ (#30546)
There is an encoding issue with using delta `Δ`, where the browser will attempt to detect the file encoding if the character set is not explicitly declared on a `<script/>` tag, and Chrome will find the `Δ` character and decide it is window-1252 encoding, which misinterprets the `Δ` character to be some other character that is not a valid JS identifier character So back to the frog eyes we go. ``` __ /ɵɵ\ ( -- ) - I am ineffable. I am forever. _/ \_ / \ / \ == == == ``` PR Close #30546
This commit is contained in:
@ -201,12 +201,12 @@
|
||||
"name": "throwMixedMultiProviderError"
|
||||
},
|
||||
{
|
||||
"name": "ΔdefineInjectable"
|
||||
"name": "ɵɵdefineInjectable"
|
||||
},
|
||||
{
|
||||
"name": "ΔdefineInjector"
|
||||
"name": "ɵɵdefineInjector"
|
||||
},
|
||||
{
|
||||
"name": "Δinject"
|
||||
"name": "ɵɵinject"
|
||||
}
|
||||
]
|
@ -6,17 +6,17 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {Injector, ɵcreateInjector as createInjector, ΔdefineInjectable, ΔdefineInjector} from '@angular/core';
|
||||
import {Injector, ɵcreateInjector as createInjector, ɵɵdefineInjectable, ɵɵdefineInjector} from '@angular/core';
|
||||
|
||||
export class RootService {
|
||||
static ngInjectableDef = ΔdefineInjectable({
|
||||
static ngInjectableDef = ɵɵdefineInjectable({
|
||||
providedIn: 'root',
|
||||
factory: () => new RootService(),
|
||||
});
|
||||
}
|
||||
|
||||
export class ScopedService {
|
||||
static ngInjectableDef = ΔdefineInjectable({
|
||||
static ngInjectableDef = ɵɵdefineInjectable({
|
||||
providedIn: null,
|
||||
factory: () => new ScopedService(),
|
||||
});
|
||||
@ -28,7 +28,7 @@ export class ScopedService {
|
||||
}
|
||||
|
||||
export class DefinedInjector {
|
||||
static ngInjectorDef = ΔdefineInjector({
|
||||
static ngInjectorDef = ɵɵdefineInjector({
|
||||
factory: () => new DefinedInjector(),
|
||||
providers: [ScopedService],
|
||||
});
|
||||
|
Reference in New Issue
Block a user