diff --git a/packages/examples/compiler/ts/url_resolver/url_resolver.ts b/packages/examples/compiler/ts/url_resolver/url_resolver.ts index 1024be3a2c..b4ea8a30af 100644 --- a/packages/examples/compiler/ts/url_resolver/url_resolver.ts +++ b/packages/examples/compiler/ts/url_resolver/url_resolver.ts @@ -16,7 +16,7 @@ class MyApp { } class MyUrlResolver extends UrlResolver { - resolve(baseUrl: string, url: string): string { + override resolve(baseUrl: string, url: string): string { // Serve CSS files from a special CDN. if (url.substr(-4) === '.css') { return super.resolve('http://cdn.myapp.com/css/', url); diff --git a/packages/examples/core/di/ts/provider_spec.ts b/packages/examples/core/di/ts/provider_spec.ts index 1bae531f89..8ed044b059 100644 --- a/packages/examples/core/di/ts/provider_spec.ts +++ b/packages/examples/core/di/ts/provider_spec.ts @@ -62,7 +62,7 @@ import {Injectable, InjectionToken, Injector, Optional, ReflectiveInjector} from } class Square extends Shape { - name = 'square'; + override name = 'square'; } const injector = ReflectiveInjector.resolveAndCreate([{provide: Shape, useClass: Square}]); @@ -80,7 +80,7 @@ import {Injectable, InjectionToken, Injector, Optional, ReflectiveInjector} from } class FormalGreeting extends Greeting { - salutation = 'Greetings'; + override salutation = 'Greetings'; } const injector = ReflectiveInjector.resolveAndCreate( @@ -101,7 +101,7 @@ import {Injectable, InjectionToken, Injector, Optional, ReflectiveInjector} from } class Square extends Shape { - name = 'square'; + override name = 'square'; } const injector = @@ -120,7 +120,7 @@ import {Injectable, InjectionToken, Injector, Optional, ReflectiveInjector} from } class FormalGreeting extends Greeting { - salutation = 'Greetings'; + override salutation = 'Greetings'; } const injector = Injector.create({ @@ -161,7 +161,7 @@ import {Injectable, InjectionToken, Injector, Optional, ReflectiveInjector} from } class FormalGreeting extends Greeting { - salutation = 'Greetings'; + override salutation = 'Greetings'; } const injector = Injector.create({