Skip to content

Commit afe8176

Browse files
committed
fix(editor): Fix component service provider
1 parent 0972337 commit afe8176

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

projects/angular-editor/src/lib/angular-editor-toolbar.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import {SelectOption} from './ae-select/ae-select.component';
88
@Component({
99
selector: 'angular-editor-toolbar',
1010
templateUrl: './angular-editor-toolbar.component.html',
11-
styleUrls: ['./angular-editor-toolbar.component.scss']
11+
styleUrls: ['./angular-editor-toolbar.component.scss'],
12+
providers: [AngularEditorService]
1213
})
1314

1415
export class AngularEditorToolbarComponent {

projects/angular-editor/src/lib/angular-editor.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ import {isDefined} from './utils';
3434
provide: NG_VALUE_ACCESSOR,
3535
useExisting: forwardRef(() => AngularEditorComponent),
3636
multi: true
37-
}
37+
},
38+
AngularEditorService
3839
]
3940
})
4041
export class AngularEditorComponent implements OnInit, ControlValueAccessor, AfterViewInit, OnDestroy {

0 commit comments

Comments
 (0)