File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,33 @@ import { NgHttpLoaderModule } from 'ng-http-loader/ng-http-loader.module'; <====
6262export class AppModule { }
6363```
6464
65+ or (splitted modules mode for more convenience)
66+
67+ ``` typescript
68+ import { BrowserModule } from ' @angular/platform-browser' ;
69+ import { NgModule } from ' @angular/core' ;
70+ [... ]
71+ import { AppComponent } from ' ./app.component' ;
72+ import { HttpClientModule } from ' @angular/common/http' ; <= ===========
73+ import { NgHttpLoaderComponentsModule } from ' ng-http-loader/components/ng-http-loader-components.module' ; <= ===========
74+ import { NgHttpLoaderServicesModule } from ' ng-http-loader/services/ng-http-loader-services.module' ; <= ===========
75+
76+ @NgModule ({
77+ declarations: [
78+ AppComponent
79+ ],
80+ imports: [
81+ BrowserModule ,
82+ HttpClientModule , <= =========== (Perform http requests with this module )
83+ NgHttpLoaderServicesModule , <= ===========
84+ NgHttpLoaderComponentsModule , <= ===========
85+ ],
86+ providers: [],
87+ bootstrap: [AppComponent ]
88+ })
89+ export class AppModule { }
90+ ```
91+
6592In your app.component.html, add :
6693``` xml
6794<spinner ></spinner >
You can’t perform that action at this time.
0 commit comments