forked from mhartington/lazyLoad2-components
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added a "hello" component that opens a pop over
- Loading branch information
Sebastian Ovide
authored and
Sebastian Ovide
committed
Jun 15, 2017
1 parent
fc384b5
commit fac2ae3
Showing
7 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<a (click)="openPopover()"> | ||
Click me to see a popover | ||
</a> |
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 @@ | ||
hello { | ||
|
||
} |
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 } from '@angular/core'; | ||
import { PopoverComponent } from '../popover/popover' | ||
import { PopoverController } from 'ionic-angular'; | ||
@Component({ | ||
selector: 'hello', | ||
templateUrl: 'hello.html' | ||
}) | ||
export class HelloComponent { | ||
constructor(private popoverCtrl: PopoverController) { | ||
} | ||
|
||
openPopover() { | ||
this.popoverCtrl.create(PopoverComponent).present(); | ||
} | ||
} |
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,10 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { PopoverComponent } from './popover' | ||
|
||
@NgModule({ | ||
declarations: [ PopoverComponent], | ||
imports: [ ], | ||
exports: [PopoverComponent], | ||
entryComponents: [PopoverComponent], | ||
}) | ||
export class PopoverModule { } |
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,5 @@ | ||
import { Component } from '@angular/core'; | ||
@Component({ | ||
template: '<h1>Hello</h1>' | ||
}) | ||
export class PopoverComponent {} |
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