Skip to content

Commit 11e0ef2

Browse files
naaajiidylhunn
authored andcommitted
docs(docs-infra): fix codeblock snippet for APP_INITIALIZER (angular#52354)
fixes broken code snippet for standalone application using APP_INITIALIZER PR Close angular#52354
1 parent fda7a84 commit 11e0ef2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/application_init.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ import {isPromise, isSubscribable} from './util/lang';
108108
* ```
109109
*
110110
* ### Example with standalone application
111-
*
111+
* ```
112112
* function initializeAppFactory(httpClient: HttpClient): () => Observable<any> {
113113
* return () => httpClient.get("https://someUrl.com/api/user")
114114
* .pipe(
@@ -127,6 +127,7 @@ import {isPromise, isSubscribable} from './util/lang';
127127
* },
128128
* ],
129129
* });
130+
* ```
130131
*
131132
* @publicApi
132133
*/

0 commit comments

Comments
 (0)