style(docs-infra): fix docs examples for tslint rule semicolon (#38143)

This commit updates the docs examples to be compatible with the
`semicolon` tslint rule.

This is in preparation of updating the docs examples `tslint.json` to
match the one generated for new Angular CLI apps in a future commit.

PR Close #38143
This commit is contained in:
George Kalpakas
2020-07-30 13:03:11 +03:00
committed by Alex Rickabaugh
parent f882099f9d
commit dc081fb0bf
21 changed files with 23 additions and 23 deletions

View File

@ -51,7 +51,7 @@ export class MasterService {
export class ReversePipe implements PipeTransform {
transform(s: string) {
let r = '';
for (let i = s.length; i; ) { r += s[--i]; };
for (let i = s.length; i; ) { r += s[--i]; }
return r;
}
}

View File

@ -139,5 +139,5 @@ class Page {
// Get the component's injected router navigation spy
const routerSpy = fixture.debugElement.injector.get(Router);
this.navSpy = routerSpy.navigate as jasmine.Spy;
};
}
}

View File

@ -8,7 +8,7 @@ import { WelcomeComponent } from './welcome.component';
class MockUserService {
isLoggedIn = true;
user = { name: 'Test User'};
};
}
// #enddocregion mock-user-service
describe('WelcomeComponent (class only)', () => {