mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Empty search bar
This commit is contained in:
@@ -53,6 +53,7 @@ export class SearchBar {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
export class SearchPipe extends Pipe {
|
||||
constructor() {
|
||||
super();
|
||||
@@ -74,6 +75,7 @@ export class SearchPipe extends Pipe {
|
||||
return new SearchPipe(cdRef);
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
new IonicComponent(SearchBar, {
|
||||
properties: {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import {bootstrap, For} from 'angular2/angular2'
|
||||
import {bootstrap, NgFor} from 'angular2/angular2'
|
||||
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
|
||||
import {View} from 'angular2/src/core/annotations_impl/view';
|
||||
|
||||
import { bind } from 'angular2/di';
|
||||
import { PipeRegistry } from 'angular2/change_detection';
|
||||
|
||||
import {FormBuilder, Validators, FormDirectives, Control, ControlGroup} from 'angular2/forms';
|
||||
import {FormBuilder, Validators, formDirectives, Control, ControlGroup} from 'angular2/forms';
|
||||
|
||||
import {Content} from 'ionic/components/content/content';
|
||||
import {List} from 'ionic/components/list/list';
|
||||
@@ -21,7 +21,7 @@ function randomTitle() {
|
||||
@Component({ selector: 'ion-app' })
|
||||
@View({
|
||||
templateUrl: 'main.html',
|
||||
directives: [FormDirectives].concat([Content, List, Item, SearchBar, For])
|
||||
directives: [formDirectives].concat([Content, List, Item, SearchBar, NgFor])
|
||||
})
|
||||
class IonicApp {
|
||||
constructor() {
|
||||
@@ -56,15 +56,17 @@ class IonicApp {
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
import { defaultPipes } from 'angular2/change_detection';
|
||||
export var pipes = Object.assign({}, defaultPipes, {
|
||||
'search': [
|
||||
new SearchPipe()
|
||||
]
|
||||
});
|
||||
*/
|
||||
|
||||
export function main() {
|
||||
bootstrap(IonicApp, [
|
||||
bind(PipeRegistry).toValue(new PipeRegistry(pipes))
|
||||
//bind(PipeRegistry).toValue(new PipeRegistry(pipes))
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user