docs(core): fixed code snippets (#28619)

PR Close #28619
This commit is contained in:
Nikita Potapenko 2019-02-08 14:06:45 +02:00 committed by Miško Hevery
parent 1ff3699d99
commit 2c00cb8f0f
1 changed files with 8 additions and 8 deletions

View File

@ -2650,10 +2650,10 @@ It takes two arguments: the component type to override (`HeroDetailComponent`) a
The [override metadata object](#metadata-override-object) is a generic defined as follows: The [override metadata object](#metadata-override-object) is a generic defined as follows:
<code-example format="." language="javascript"> <code-example format="." language="javascript">
type MetadataOverride<T> = { type MetadataOverride&lt;T&gt; = {
add?: Partial<T>; add?: Partial&lt;T&gt;;
remove?: Partial<T>; remove?: Partial&lt;T&gt;;
set?: Partial<T>; set?: Partial&lt;T&gt;;
}; };
</code-example> </code-example>
@ -3008,10 +3008,10 @@ appropriate to the method, that is, the parameter of an `@NgModule`,
`@Component`, `@Directive`, or `@Pipe`. `@Component`, `@Directive`, or `@Pipe`.
<code-example format="." language="javascript"> <code-example format="." language="javascript">
type MetadataOverride<T> = { type MetadataOverride&lt;T&gt; = {
add?: Partial<T>; add?: Partial&lt;T&gt;;
remove?: Partial<T>; remove?: Partial&lt;T&gt;;
set?: Partial<T>; set?: Partial&lt;T&gt;;
}; };
</code-example> </code-example>