Skip to content

docs: Inline templates, correct type errors that revealed.#6936

Merged
benlesh merged 1 commit intoReactiveX:masterfrom
benlesh:docs_inline-templates-fix-types
Jul 20, 2022
Merged

docs: Inline templates, correct type errors that revealed.#6936
benlesh merged 1 commit intoReactiveX:masterfrom
benlesh:docs_inline-templates-fix-types

Conversation

@benlesh
Copy link
Copy Markdown
Member

@benlesh benlesh commented Apr 19, 2022

This change simply uses inline template instead of templateUrl. I've always hated templateUrl haha.

Anyhow, doing this reveals more type errors and gives better feedback in VS Code (if you're using Angular Language Service).

@benlesh benlesh added 7.x Issues and PRs for version 7.x 8.x Issues and PRs for version 8.x labels Apr 19, 2022
Copy link
Copy Markdown
Member

@jakovljevic-mladen jakovljevic-mladen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. One check can be removed since it was moved to another place.

[path]="tab.path"
[region]="tab.region"
[header]="tab.header"
>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh Prettier 🙄

@@ -45,14 +71,16 @@ export class SearchResultsComponent implements OnChanges {
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you added check in ngOnChanges, this part: if (!search) { return []; } can be removed.

@benlesh benlesh merged commit 9a85e01 into ReactiveX:master Jul 20, 2022
@benlesh benlesh deleted the docs_inline-templates-fix-types branch July 20, 2022 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

7.x Issues and PRs for version 7.x 8.x Issues and PRs for version 8.x

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants