Skip to content

Commit

Permalink
convert divider to standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed Ben Makhlouf committed Oct 20, 2024
1 parent 8b595a7 commit 4b7a888
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/components/divider/divider.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ComponentRef } from '@angular/core';
import { TestBed, ComponentFixture } from '@angular/core/testing';
import { Divider, DividerModule } from './divider';
import { Divider } from './divider';
import { NoopAnimationsModule } from '@angular/platform-browser/animations';

describe('Divider', () => {
Expand All @@ -10,7 +10,7 @@ describe('Divider', () => {

beforeEach(() => {
TestBed.configureTestingModule({
imports: [NoopAnimationsModule, DividerModule],
imports: [NoopAnimationsModule, Divider],
});

fixture = TestBed.createComponent(Divider);
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/divider/divider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { DividerStyle } from './style/dividerstyle';
*/
@Component({
selector: 'p-divider',
standalone: true,
template: `
<div class="p-divider-content">
<ng-content></ng-content>
Expand Down Expand Up @@ -71,8 +72,7 @@ export class Divider extends BaseComponent {
}

@NgModule({
imports: [],
imports: [Divider],
exports: [Divider],
declarations: [Divider],
})
export class DividerModule {}

0 comments on commit 4b7a888

Please sign in to comment.