mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
add open left btn for aside example
This commit is contained in:
@ -136,7 +136,7 @@ gulp.task('angular2', function () {
|
|||||||
.pipe(gulp.dest('dist/lib'));
|
.pipe(gulp.dest('dist/lib'));
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('examples', function() {
|
gulp.task('examples', ['sass'], function() {
|
||||||
return gulp.src('src/components/**/examples/**/*')
|
return gulp.src('src/components/**/examples/**/*')
|
||||||
.pipe(gulpif(/index.html/, wrap({
|
.pipe(gulpif(/index.html/, wrap({
|
||||||
src: 'scripts/examples/index.template.html'
|
src: 'scripts/examples/index.template.html'
|
||||||
|
@ -29,4 +29,8 @@
|
|||||||
Side menu!
|
Side menu!
|
||||||
</ion-aside>
|
</ion-aside>
|
||||||
</ion-aside-parent>
|
</ion-aside-parent>
|
||||||
|
<div class="content">
|
||||||
|
<button class="button" (click)="openLeft()">
|
||||||
|
Open Left Menu
|
||||||
|
</button>
|
||||||
</aside-app>
|
</aside-app>
|
||||||
|
@ -9,6 +9,9 @@ import {Template, Component, bootstrap} from 'angular2/angular2';
|
|||||||
inline: `<content></content>`,
|
inline: `<content></content>`,
|
||||||
directives: [Aside, AsideParent]
|
directives: [Aside, AsideParent]
|
||||||
})
|
})
|
||||||
class AsideApp {}
|
class AsideApp {
|
||||||
|
openLeft() {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
bootstrap(AsideApp);
|
bootstrap(AsideApp);
|
||||||
|
Reference in New Issue
Block a user