Skip to content

Commit

Permalink
Merge pull request Sunbird-Ed#15 from lakhanmandloi/master
Browse files Browse the repository at this point in the history
 Issue #SB-13915 task: Modal Component
  • Loading branch information
sri-pusuluri authored Aug 28, 2019
2 parents 77c41d3 + baac249 commit 788d0cc
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p>
modal works!
</p>
Empty file.
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();
});
});
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() {
}

}
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 { }
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ export * from './lib/sb-ui-components.service';
export * from './lib/sb-ui-components.component';
export * from './lib/sb-ui-components.module';
export * from './lib/card/card.component';
export * from './lib/modal/modal.component';
1 change: 1 addition & 0 deletions sb-ui-components-app/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
org="Academy of European Law (ERA)"
></sb-card>
</div>
<sb-modal></sb-modal>
<router-outlet></router-outlet>

0 comments on commit 788d0cc

Please sign in to comment.