forked from Sunbird-Ed/sunbird-ui-components
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Sunbird-Ed#15 from lakhanmandloi/master
Issue #SB-13915 task: Modal Component
- Loading branch information
Showing
7 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
sb-ui-components-app/projects/sb-ui-components/src/lib/modal/modal.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<p> | ||
modal works! | ||
</p> |
Empty file.
25 changes: 25 additions & 0 deletions
25
sb-ui-components-app/projects/sb-ui-components/src/lib/modal/modal.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { ModalComponent } from './modal.component'; | ||
|
||
describe('ModalComponent', () => { | ||
let component: ModalComponent; | ||
let fixture: ComponentFixture<ModalComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ ModalComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(ModalComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
15 changes: 15 additions & 0 deletions
15
sb-ui-components-app/projects/sb-ui-components/src/lib/modal/modal.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'sb-modal', | ||
templateUrl: './modal.component.html', | ||
styleUrls: ['./modal.component.scss'] | ||
}) | ||
export class ModalComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} |
5 changes: 3 additions & 2 deletions
5
sb-ui-components-app/projects/sb-ui-components/src/lib/sb-ui-components.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { SbUiComponentsComponent } from './sb-ui-components.component'; | ||
import { CardComponent } from './card/card.component'; | ||
import { ModalComponent } from './modal/modal.component'; | ||
|
||
@NgModule({ | ||
declarations: [SbUiComponentsComponent, CardComponent], | ||
declarations: [SbUiComponentsComponent, CardComponent, ModalComponent], | ||
imports: [ | ||
], | ||
exports: [SbUiComponentsComponent, CardComponent] | ||
exports: [SbUiComponentsComponent, CardComponent, ModalComponent] | ||
}) | ||
export class SbUiComponentsModule { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ | |
org="Academy of European Law (ERA)" | ||
></sb-card> | ||
</div> | ||
<sb-modal></sb-modal> | ||
<router-outlet></router-outlet> |