mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
refactor(animations): inline css animations
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import {Directive, ElementRef, Renderer, Optional, EventEmitter, Input, Output, HostListener, ContentChildren, QueryList} from 'angular2/core';
|
||||
import {Directive, Component, ElementRef, Renderer, Optional, EventEmitter, Input, Output, HostListener, ContentChildren, QueryList} from 'angular2/core';
|
||||
import {NgControl} from 'angular2/common';
|
||||
|
||||
import {isDefined} from '../../util/util';
|
||||
@ -45,8 +45,11 @@ import {isDefined} from '../../util/util';
|
||||
* @see {@link /docs/v2/components#segment Segment Component Docs}
|
||||
* @see {@link /docs/v2/api/components/segment/Segment/ Segment API Docs}
|
||||
*/
|
||||
@Directive({
|
||||
@Component({
|
||||
selector: 'ion-segment-button',
|
||||
template:
|
||||
'<ng-content></ng-content>' +
|
||||
'<ion-button-effect></ion-button-effect>',
|
||||
host: {
|
||||
'tappable': '',
|
||||
'class': 'segment-button',
|
||||
|
Reference in New Issue
Block a user