You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-25Lines changed: 30 additions & 25 deletions
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ yarn add ngx-fastboot
42
42
43
43
## Usage
44
44
45
-
To use **ngx-fastboot**, import the `fast` function and call it with your Angular application's `bootstrapApplication` function, root component, and configuration options.
45
+
To use **ngx-fastboot**, import the `fastBootstrapApplication` function and call it as your Angular application's `bootstrapApplication` function.
46
46
47
47
### Example
48
48
@@ -54,7 +54,6 @@ import { AppComponent } from './app.component';
Dynamically loads the specified providers in the configuration and bootstraps an Angular application.
329
321
330
322
#### Parameters
331
323
332
-
-**`bootstrap`**: The Angular application's bootstrap function (typically `bootstrapApplication`).
324
+
-**`rootComponent`**: The root component of the application, which should be of type `FastComponent`.
325
+
-**`options`**: (Optional) The application configuration, including the providers to be loaded. It should conform to the `FastApplicationConfig` type. Providers can be `Provider`, `EnvironmentProviders`, or lazy modules that return these providers.
326
+
327
+
#### Returns
328
+
329
+
A `Promise` that resolves to an `ApplicationRef` instance of the bootstrapped application. The bootstrap method is called with the root component and the updated configuration with the resolved providers.
330
+
331
+
### `fast`
332
+
333
+
Dynamically loads the specified providers in the configuration and bootstraps an Angular application passing a custom bootstrap function.
334
+
335
+
#### Parameters
336
+
337
+
-**`bootstrap`**: The bootstrap function (typically `bootstrapApplication`).
333
338
-**`rootComponent`**: The root component of the application, which should be of type `FastComponent`.
334
339
-**`options`**: (Optional) The application configuration, including the providers to be loaded. It should conform to the `FastApplicationConfig` type. Providers can be `Provider`, `EnvironmentProviders`, or lazy modules that return these providers.
0 commit comments