...
|
...
|
@@ -14,7 +14,7 @@ |
14
|
14
|
/// limitations under the License.
|
15
|
15
|
///
|
16
|
16
|
|
17
|
|
-import { Component, Inject } from '@angular/core';
|
|
17
|
+import { Component, Inject, Optional } from '@angular/core';
|
18
|
18
|
import { select, Store } from '@ngrx/store';
|
19
|
19
|
import { AppState } from '@core/core.state';
|
20
|
20
|
import { EntityComponent } from '../../components/entity/entity.component';
|
...
|
...
|
@@ -41,8 +41,8 @@ export class UserComponent extends EntityComponent<User> { |
41
|
41
|
);
|
42
|
42
|
|
43
|
43
|
constructor(protected store: Store<AppState>,
|
44
|
|
- @Inject('entity') protected entityValue: User,
|
45
|
|
- @Inject('entitiesTableConfig') protected entitiesTableConfigValue: EntityTableConfig<User>,
|
|
44
|
+ @Optional() @Inject('entity') protected entityValue: User,
|
|
45
|
+ @Optional() @Inject('entitiesTableConfig') protected entitiesTableConfigValue: EntityTableConfig<User>,
|
46
|
46
|
public fb: FormBuilder) {
|
47
|
47
|
super(store, fb, entityValue, entitiesTableConfigValue);
|
48
|
48
|
}
|
...
|
...
|
|