File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { Component } from '@angular/core' ;
2
+ import { AppareilService } from './services/appareil.service' ;
2
3
3
4
@Component ( {
4
5
selector : 'app-root' ,
@@ -31,7 +32,7 @@ export class AppComponent {
31
32
}
32
33
] ;
33
34
34
- constructor ( ) {
35
+ constructor ( private appareilService : AppareilService ) {
35
36
setTimeout (
36
37
( ) => {
37
38
this . isAuth = true ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { NgModule } from '@angular/core';
3
3
import { AppComponent } from './app.component' ;
4
4
import { AppareilComponent } from './appareil/appareil.component' ;
5
5
import { FormsModule } from '@angular/forms' ;
6
+ import { AppareilService } from './services/appareil.service' ;
6
7
7
8
@NgModule ( {
8
9
declarations : [
@@ -13,7 +14,9 @@ import { FormsModule } from '@angular/forms';
13
14
BrowserModule ,
14
15
FormsModule
15
16
] ,
16
- providers : [ ] ,
17
+ providers : [
18
+ AppareilService
19
+ ] ,
17
20
bootstrap : [ AppComponent ]
18
21
} )
19
22
export class AppModule { }
Original file line number Diff line number Diff line change
1
+ export class AppareilService {
2
+ }
You can’t perform that action at this time.
0 commit comments