Skip to content

Commit

Permalink
modal fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pkrawat1 committed Dec 5, 2016
1 parent bd98e24 commit 95a9d10
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
16 changes: 13 additions & 3 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
import { Component, ChangeDetectionStrategy } from '@angular/core';
import { Component, ChangeDetectionStrategy, OnInit } from '@angular/core';
import { AngularFire, AuthProviders } from 'angularfire2';
import { Router } from '@angular/router';

declare var $:any;

@Component({
selector: 'pin-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css'],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class AppComponent {
export class AppComponent implements OnInit {

constructor(

public router: Router
) {
}

ngOnInit() {
$(document).on('closed.zf.reveal', '[data-reveal]', () => {
this.router.navigate(['../'])
console.log('modal closed')
});
}

}
2 changes: 1 addition & 1 deletion src/app/components/shared/modal/modal.component.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="{{size}} reveal {{klass}}" data-reveal>
<div class="{{size}} reveal {{klass}}" data-reveal data-reset-on-close="false">
<h4 class="column">
<strong>
{{title}}
Expand Down

0 comments on commit 95a9d10

Please sign in to comment.