chore: add ViewEncapsulation.None to components

Closes #5884
This commit is contained in:
Adam Bradley
2016-04-10 20:38:04 -05:00
parent 4e8ecae83c
commit acc6321d0d
25 changed files with 67 additions and 39 deletions

View File

@ -1,4 +1,4 @@
import {Component, Renderer, ElementRef, HostListener, ChangeDetectionStrategy} from 'angular2/core'; import {Component, Renderer, ElementRef, HostListener, ChangeDetectionStrategy, ViewEncapsulation} from 'angular2/core';
import {NgFor, NgIf} from 'angular2/common'; import {NgFor, NgIf} from 'angular2/common';
import {Animation} from '../../animations/animation'; import {Animation} from '../../animations/animation';
@ -188,6 +188,7 @@ export class ActionSheet extends ViewController {
}, },
directives: [NgFor, NgIf, Icon], directives: [NgFor, NgIf, Icon],
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
}) })
class ActionSheetCmp { class ActionSheetCmp {
private d: any; private d: any;

View File

@ -1,4 +1,4 @@
import {Component, ElementRef, Renderer, HostListener, ChangeDetectionStrategy} from 'angular2/core'; import {Component, ElementRef, Renderer, HostListener, ChangeDetectionStrategy, ViewEncapsulation} from 'angular2/core';
import {NgClass, NgSwitch, NgIf, NgFor} from 'angular2/common'; import {NgClass, NgSwitch, NgIf, NgFor} from 'angular2/common';
import {Animation} from '../../animations/animation'; import {Animation} from '../../animations/animation';
@ -310,6 +310,7 @@ export class Alert extends ViewController {
}, },
directives: [NgClass, NgSwitch, NgIf, NgFor], directives: [NgClass, NgSwitch, NgIf, NgFor],
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
}) })
class AlertCmp { class AlertCmp {
private activeId: string; private activeId: string;

View File

@ -1,4 +1,4 @@
import {Component, ElementRef, Renderer, Attribute, Optional, Input, ChangeDetectionStrategy} from 'angular2/core'; import {Component, ElementRef, Renderer, Attribute, Optional, Input, ChangeDetectionStrategy, ViewEncapsulation} from 'angular2/core';
import {Config} from '../../config/config'; import {Config} from '../../config/config';
import {Toolbar} from '../toolbar/toolbar'; import {Toolbar} from '../toolbar/toolbar';
@ -40,6 +40,7 @@ import {isTrueProperty} from '../../util/util';
'</span>' + '</span>' +
'<ion-button-effect></ion-button-effect>', '<ion-button-effect></ion-button-effect>',
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
}) })
export class Button { export class Button {
private _role: string = 'button'; // bar-button/item-button private _role: string = 'button'; // bar-button/item-button

View File

@ -1,4 +1,4 @@
import {Component, Optional, Input, Output, EventEmitter, HostListener, Provider, forwardRef} from 'angular2/core'; import {Component, Optional, Input, Output, EventEmitter, HostListener, Provider, forwardRef, ViewEncapsulation} from 'angular2/core';
import {NG_VALUE_ACCESSOR} from 'angular2/common'; import {NG_VALUE_ACCESSOR} from 'angular2/common';
import {Form} from '../../util/form'; import {Form} from '../../util/form';
@ -63,7 +63,8 @@ const CHECKBOX_VALUE_ACCESSOR = new Provider(
host: { host: {
'[class.checkbox-disabled]': '_disabled' '[class.checkbox-disabled]': '_disabled'
}, },
providers: [CHECKBOX_VALUE_ACCESSOR] providers: [CHECKBOX_VALUE_ACCESSOR],
encapsulation: ViewEncapsulation.None,
}) })
export class Checkbox { export class Checkbox {
private _checked: boolean = false; private _checked: boolean = false;

View File

@ -1,4 +1,4 @@
import {Component, ElementRef, Optional, NgZone, ChangeDetectionStrategy} from 'angular2/core'; import {Component, ElementRef, Optional, NgZone, ChangeDetectionStrategy, ViewEncapsulation} from 'angular2/core';
import {Ion} from '../ion'; import {Ion} from '../ion';
import {IonicApp} from '../app/app'; import {IonicApp} from '../app/app';
@ -34,6 +34,7 @@ import {ScrollView} from '../../util/scroll-view';
'<ng-content select="ion-fixed"></ng-content>' + '<ng-content select="ion-fixed"></ng-content>' +
'<ng-content select="ion-refresher"></ng-content>', '<ng-content select="ion-refresher"></ng-content>',
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
}) })
export class Content extends Ion { export class Content extends Ion {
private _padding: number = 0; private _padding: number = 0;

View File

@ -1,4 +1,4 @@
import {Component, Input, HostBinding, ViewChild, ElementRef} from 'angular2/core'; import {Component, Input, HostBinding, ViewChild, ElementRef, ViewEncapsulation} from 'angular2/core';
import {isPresent} from '../../util/util'; import {isPresent} from '../../util/util';
import {Platform} from '../../platform/platform'; import {Platform} from '../../platform/platform';
@ -10,7 +10,8 @@ import {Platform} from '../../platform/platform';
'<div *ngIf="_useA" class="img-placeholder" [style.height]="_h" [style.width]="_w"></div>' + '<div *ngIf="_useA" class="img-placeholder" [style.height]="_h" [style.width]="_w"></div>' +
'<img #imgA *ngIf="_useA" (load)="_onLoad()" [src]="_srcA" [style.height]="_h" [style.width]="_w">' + '<img #imgA *ngIf="_useA" (load)="_onLoad()" [src]="_srcA" [style.height]="_h" [style.width]="_w">' +
'<div *ngIf="!_useA" class="img-placeholder" [style.height]="_h" [style.width]="_w"></div>' + '<div *ngIf="!_useA" class="img-placeholder" [style.height]="_h" [style.width]="_w"></div>' +
'<img #imgB *ngIf="!_useA" (load)="_onLoad()" [src]="_srcB" [style.height]="_h" [style.width]="_w">' '<img #imgB *ngIf="!_useA" (load)="_onLoad()" [src]="_srcB" [style.height]="_h" [style.width]="_w">',
encapsulation: ViewEncapsulation.None,
}) })
export class Img { export class Img {
private _src: string = ''; private _src: string = '';

View File

@ -1,4 +1,4 @@
import {Component, Input} from 'angular2/core'; import {Component, Input, ViewEncapsulation} from 'angular2/core';
import {NgIf} from 'angular2/common'; import {NgIf} from 'angular2/common';
import {Config} from '../../config/config'; import {Config} from '../../config/config';
@ -21,7 +21,8 @@ import {Spinner} from '../spinner/spinner';
directives: [NgIf, Spinner], directives: [NgIf, Spinner],
host: { host: {
'[attr.state]': 'inf.state' '[attr.state]': 'inf.state'
} },
encapsulation: ViewEncapsulation.None,
}) })
export class InfiniteScrollContent { export class InfiniteScrollContent {

View File

@ -1,4 +1,4 @@
import {Component, Optional, ElementRef, ViewChild} from 'angular2/core'; import {Component, Optional, ElementRef, ViewChild, ViewEncapsulation} from 'angular2/core';
import {NgIf, NgControl} from 'angular2/common'; import {NgIf, NgControl} from 'angular2/common';
import {Button} from '../button/button'; import {Button} from '../button/button';
@ -74,7 +74,8 @@ import {Platform} from '../../platform/platform';
NextInput, NextInput,
NativeInput, NativeInput,
Button Button
] ],
encapsulation: ViewEncapsulation.None,
}) })
export class TextInput extends InputBase { export class TextInput extends InputBase {
constructor( constructor(
@ -155,7 +156,8 @@ export class TextInput extends InputBase {
NgIf, NgIf,
NextInput, NextInput,
NativeInput NativeInput
] ],
encapsulation: ViewEncapsulation.None,
}) })
export class TextArea extends InputBase { export class TextArea extends InputBase {
constructor( constructor(

View File

@ -1,4 +1,4 @@
import {Component, ElementRef, Optional, ChangeDetectionStrategy} from 'angular2/core'; import {Component, ElementRef, Optional, ChangeDetectionStrategy, ViewEncapsulation} from 'angular2/core';
import {List} from '../list/list'; import {List} from '../list/list';
@ -33,6 +33,7 @@ import {List} from '../list/list';
'<ng-content select="ion-item,[ion-item]"></ng-content>' + '<ng-content select="ion-item,[ion-item]"></ng-content>' +
'<ng-content select="ion-item-options"></ng-content>', '<ng-content select="ion-item-options"></ng-content>',
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
}) })
export class ItemSliding { export class ItemSliding {

View File

@ -1,4 +1,4 @@
import {Component, ContentChildren, forwardRef, ViewChild, ContentChild, Renderer, ElementRef, ChangeDetectionStrategy} from 'angular2/core'; import {Component, ContentChildren, forwardRef, ViewChild, ContentChild, Renderer, ElementRef, ChangeDetectionStrategy, ViewEncapsulation} from 'angular2/core';
import {NgIf} from 'angular2/common'; import {NgIf} from 'angular2/common';
import {Button} from '../button/button'; import {Button} from '../button/button';
@ -59,6 +59,7 @@ import {Label} from '../label/label';
}, },
directives: [NgIf, Label], directives: [NgIf, Label],
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
}) })
export class Item { export class Item {
private _ids: number = -1; private _ids: number = -1;

View File

@ -1,4 +1,4 @@
import {Component, Renderer, ElementRef, HostListener, ChangeDetectionStrategy} from 'angular2/core'; import {Component, Renderer, ElementRef, HostListener, ChangeDetectionStrategy, ViewEncapsulation} from 'angular2/core';
import {NgFor, NgIf} from 'angular2/common'; import {NgFor, NgIf} from 'angular2/common';
import {Animation} from '../../animations/animation'; import {Animation} from '../../animations/animation';
@ -159,6 +159,7 @@ export class Loading extends ViewController {
}, },
directives: [NgIf, Spinner], directives: [NgIf, Spinner],
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
}) })
class LoadingCmp { class LoadingCmp {
private d: any; private d: any;

View File

@ -1,4 +1,4 @@
import {Component, forwardRef, Directive, Host, EventEmitter, ElementRef, NgZone, Input, Output, Renderer, ChangeDetectionStrategy} from 'angular2/core'; import {Component, forwardRef, Directive, Host, EventEmitter, ElementRef, NgZone, Input, Output, Renderer, ChangeDetectionStrategy, ViewEncapsulation} from 'angular2/core';
import {Ion} from '../ion'; import {Ion} from '../ion';
import {Config} from '../../config/config'; import {Config} from '../../config/config';
@ -23,6 +23,7 @@ import {isTrueProperty} from '../../util/util';
'<div tappable disable-activated class="backdrop"></div>', '<div tappable disable-activated class="backdrop"></div>',
directives: [forwardRef(() => MenuBackdrop)], directives: [forwardRef(() => MenuBackdrop)],
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
}) })
export class Menu extends Ion { export class Menu extends Ion {
private _preventTime: number = 0; private _preventTime: number = 0;

View File

@ -1,4 +1,4 @@
import {Component, ElementRef, Input, Optional, NgZone, Compiler, AppViewManager, Renderer, Type, ViewChild} from 'angular2/core'; import {Component, ElementRef, Input, Optional, NgZone, Compiler, AppViewManager, Renderer, Type, ViewChild, ViewEncapsulation} from 'angular2/core';
import {IonicApp} from '../app/app'; import {IonicApp} from '../app/app';
import {Config} from '../../config/config'; import {Config} from '../../config/config';
@ -106,7 +106,8 @@ import {ViewController} from './view-controller';
@Component({ @Component({
selector: 'ion-nav', selector: 'ion-nav',
template: '<div #contents></div><div portal></div>', template: '<div #contents></div><div portal></div>',
directives: [Portal] directives: [Portal],
encapsulation: ViewEncapsulation.None,
}) })
export class Nav extends NavController { export class Nav extends NavController {
private _root: Type; private _root: Type;

View File

@ -1,4 +1,4 @@
import {Component, Optional, Input, Output, HostListener, EventEmitter} from 'angular2/core'; import {Component, Optional, Input, Output, HostListener, EventEmitter, ViewEncapsulation} from 'angular2/core';
import {Form} from '../../util/form'; import {Form} from '../../util/form';
import {isTrueProperty, isPresent, isBlank, isCheckedProperty} from '../../util/util'; import {isTrueProperty, isPresent, isBlank, isCheckedProperty} from '../../util/util';
@ -44,7 +44,8 @@ import {RadioGroup} from './radio-group';
'</button>', '</button>',
host: { host: {
'[class.radio-disabled]': '_disabled' '[class.radio-disabled]': '_disabled'
} },
encapsulation: ViewEncapsulation.None,
}) })
export class RadioButton { export class RadioButton {
private _checked: boolean = false; private _checked: boolean = false;

View File

@ -1,4 +1,4 @@
import {Component, Input} from 'angular2/core'; import {Component, Input, ChangeDetectionStrategy, ViewEncapsulation} from 'angular2/core';
import {NgIf} from 'angular2/common'; import {NgIf} from 'angular2/common';
import {Config} from '../../config/config'; import {Config} from '../../config/config';
@ -28,7 +28,9 @@ import {Spinner} from '../spinner/spinner';
directives: [NgIf, Icon, Spinner], directives: [NgIf, Icon, Spinner],
host: { host: {
'[attr.state]': 'r.state' '[attr.state]': 'r.state'
} },
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
}) })
export class RefresherContent { export class RefresherContent {

View File

@ -1,4 +1,4 @@
import {Component, ElementRef, ChangeDetectionStrategy} from 'angular2/core'; import {Component, ElementRef, ChangeDetectionStrategy, ViewEncapsulation} from 'angular2/core';
import {Ion} from '../ion'; import {Ion} from '../ion';
import {Gesture} from '../../gestures/gesture'; import {Gesture} from '../../gestures/gesture';
@ -44,6 +44,7 @@ import * as util from '../../util';
'</div>' + '</div>' +
'</scroll-content>', '</scroll-content>',
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
}) })
export class Scroll extends Ion { export class Scroll extends Ion {
/** /**

View File

@ -1,4 +1,4 @@
import {ElementRef, Component, Directive, Host, HostBinding, HostListener, ViewChild, Input, Output, EventEmitter, Optional} from 'angular2/core'; import {ElementRef, Component, Directive, Host, HostBinding, HostListener, ViewChild, Input, Output, EventEmitter, Optional, ViewEncapsulation} from 'angular2/core';
import {NgIf, NgClass, NgControl, FORM_DIRECTIVES} from 'angular2/common'; import {NgIf, NgClass, NgControl, FORM_DIRECTIVES} from 'angular2/common';
import {Ion} from '../ion'; import {Ion} from '../ion';
@ -64,7 +64,8 @@ export class SearchbarInput {
'<button clear class="searchbar-clear-icon" (click)="clearInput()" (mousedown)="clearInput()"></button>' + '<button clear class="searchbar-clear-icon" (click)="clearInput()" (mousedown)="clearInput()"></button>' +
'</div>' + '</div>' +
'<button clear (click)="cancelSearchbar()" (mousedown)="cancelSearchbar()" [hidden]="hideCancelButton" class="searchbar-ios-cancel">{{cancelButtonText}}</button>', '<button clear (click)="cancelSearchbar()" (mousedown)="cancelSearchbar()" [hidden]="hideCancelButton" class="searchbar-ios-cancel">{{cancelButtonText}}</button>',
directives: [FORM_DIRECTIVES, NgIf, NgClass, Icon, Button, SearchbarInput] directives: [FORM_DIRECTIVES, NgIf, NgClass, Icon, Button, SearchbarInput],
encapsulation: ViewEncapsulation.None,
}) })
export class Searchbar extends Ion { export class Searchbar extends Ion {
private _tmr: any; private _tmr: any;

View File

@ -1,4 +1,4 @@
import {Directive, Component, ElementRef, Renderer, Optional, EventEmitter, Input, Output, HostListener, ContentChildren, QueryList} from 'angular2/core'; import {Directive, Component, ElementRef, Renderer, Optional, EventEmitter, Input, Output, HostListener, ContentChildren, QueryList, ViewEncapsulation} from 'angular2/core';
import {NgControl} from 'angular2/common'; import {NgControl} from 'angular2/common';
import {isPresent} from '../../util/util'; import {isPresent} from '../../util/util';
@ -52,7 +52,8 @@ import {isPresent} from '../../util/util';
'tappable': '', 'tappable': '',
'class': 'segment-button', 'class': 'segment-button',
'role': 'button' 'role': 'button'
} },
encapsulation: ViewEncapsulation.None,
}) })
export class SegmentButton { export class SegmentButton {

View File

@ -1,4 +1,4 @@
import {Component, Optional, ElementRef, Renderer, Input, Output, Provider, forwardRef, EventEmitter, HostListener, ContentChildren, QueryList} from 'angular2/core'; import {Component, Optional, ElementRef, Renderer, Input, Output, Provider, forwardRef, EventEmitter, HostListener, ContentChildren, QueryList, ViewEncapsulation} from 'angular2/core';
import {NG_VALUE_ACCESSOR} from 'angular2/common'; import {NG_VALUE_ACCESSOR} from 'angular2/common';
import {Alert} from '../alert/alert'; import {Alert} from '../alert/alert';
@ -115,7 +115,8 @@ const SELECT_VALUE_ACCESSOR = new Provider(
host: { host: {
'[class.select-disabled]': '_disabled' '[class.select-disabled]': '_disabled'
}, },
providers: [SELECT_VALUE_ACCESSOR] providers: [SELECT_VALUE_ACCESSOR],
encapsulation: ViewEncapsulation.None,
}) })
export class Select { export class Select {
private _disabled: any = false; private _disabled: any = false;

View File

@ -1,4 +1,4 @@
import {Directive, Component, ElementRef, Host, EventEmitter, Input, Output, ChangeDetectionStrategy} from 'angular2/core'; import {Directive, Component, ElementRef, Host, EventEmitter, Input, Output, ChangeDetectionStrategy, ViewEncapsulation} from 'angular2/core';
import {NgClass} from 'angular2/common'; import {NgClass} from 'angular2/common';
import {Ion} from '../ion'; import {Ion} from '../ion';
@ -73,6 +73,7 @@ import {Scroll} from '../scroll/scroll';
'</div>', '</div>',
directives: [NgClass], directives: [NgClass],
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
}) })
export class Slides extends Ion { export class Slides extends Ion {
@ -669,6 +670,7 @@ export class Slides extends Ion {
selector: 'ion-slide', selector: 'ion-slide',
template: '<div class="slide-zoom"><ng-content></ng-content></div>', template: '<div class="slide-zoom"><ng-content></ng-content></div>',
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
}) })
export class Slide { export class Slide {

View File

@ -1,4 +1,4 @@
import {Component, Input, ChangeDetectionStrategy} from 'angular2/core'; import {Component, Input, ChangeDetectionStrategy, ViewEncapsulation} from 'angular2/core';
import {NgStyle} from 'angular2/common'; import {NgStyle} from 'angular2/common';
import {Config} from '../../config/config'; import {Config} from '../../config/config';
@ -112,6 +112,7 @@ import {Config} from '../../config/config';
'[class.spinner-paused]': 'paused' '[class.spinner-paused]': 'paused'
}, },
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
}) })
export class Spinner { export class Spinner {
private _c: any[]; private _c: any[];

View File

@ -1,4 +1,4 @@
import {Component, Directive, Host, Inject, forwardRef, ElementRef, Compiler, AppViewManager, NgZone, Renderer, Type} from 'angular2/core'; import {Component, Directive, Host, Inject, forwardRef, ElementRef, Compiler, AppViewManager, NgZone, Renderer, Type, ViewEncapsulation} from 'angular2/core';
import {EventEmitter, Input, Output} from 'angular2/core'; import {EventEmitter, Input, Output} from 'angular2/core';
import {IonicApp} from '../app/app'; import {IonicApp} from '../app/app';
@ -80,7 +80,8 @@ import {TabButton} from './tab-button';
'[attr.aria-labelledby]': '_btnId', '[attr.aria-labelledby]': '_btnId',
'role': 'tabpanel' 'role': 'tabpanel'
}, },
template: '<div #contents></div>' template: '<div #contents></div>',
encapsulation: ViewEncapsulation.None,
}) })
export class Tab extends NavController { export class Tab extends NavController {

View File

@ -1,4 +1,4 @@
import {Component, Directive, ElementRef, Optional, Host, forwardRef, ViewContainerRef, ViewChild, ViewChildren, EventEmitter, Output, Input, Renderer, Type} from 'angular2/core'; import {Component, Directive, ElementRef, Optional, Host, forwardRef, ViewContainerRef, ViewChild, ViewChildren, EventEmitter, Output, Input, Renderer, Type, ViewEncapsulation} from 'angular2/core';
import {NgFor, NgIf} from 'angular2/common'; import {NgFor, NgIf} from 'angular2/common';
import {IonicApp} from '../app/app'; import {IonicApp} from '../app/app';
@ -65,7 +65,8 @@ import {isBlank, isTrueProperty} from '../../util/util';
TabButton, TabButton,
TabHighlight, TabHighlight,
forwardRef(() => TabNavBarAnchor) forwardRef(() => TabNavBarAnchor)
] ],
encapsulation: ViewEncapsulation.None,
}) })
export class Tabs extends Ion { export class Tabs extends Ion {
private _ids: number = -1; private _ids: number = -1;

View File

@ -1,4 +1,4 @@
import {Component, ElementRef, Renderer, Input, Output, EventEmitter, Optional, Provider, forwardRef} from 'angular2/core'; import {Component, ElementRef, Renderer, Input, Output, EventEmitter, Optional, Provider, forwardRef, ViewEncapsulation} from 'angular2/core';
import {ControlValueAccessor, NG_VALUE_ACCESSOR} from 'angular2/common'; import {ControlValueAccessor, NG_VALUE_ACCESSOR} from 'angular2/common';
import {Form} from '../../util/form'; import {Form} from '../../util/form';
@ -73,7 +73,8 @@ const TOGGLE_VALUE_ACCESSOR = new Provider(
host: { host: {
'[class.toggle-disabled]': '_disabled' '[class.toggle-disabled]': '_disabled'
}, },
providers: [TOGGLE_VALUE_ACCESSOR] providers: [TOGGLE_VALUE_ACCESSOR],
encapsulation: ViewEncapsulation.None,
}) })
export class Toggle implements ControlValueAccessor { export class Toggle implements ControlValueAccessor {
private _checked: boolean = false; private _checked: boolean = false;

View File

@ -1,4 +1,4 @@
import {Component, Directive, Host, ElementRef, Optional, forwardRef, Inject, ContentChildren, ContentChild, QueryList, ChangeDetectionStrategy} from 'angular2/core'; import {Component, Directive, Host, ElementRef, Optional, forwardRef, Inject, ContentChildren, ContentChild, QueryList, ChangeDetectionStrategy, ViewEncapsulation} from 'angular2/core';
import {Ion} from '../ion'; import {Ion} from '../ion';
import {MenuToggle} from '../menu/menu-toggle'; import {MenuToggle} from '../menu/menu-toggle';
@ -147,6 +147,7 @@ export class Toolbar extends ToolbarBase {
'<ng-content></ng-content>' + '<ng-content></ng-content>' +
'</div>', '</div>',
changeDetection: ChangeDetectionStrategy.OnPush, changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
}) })
export class ToolbarTitle extends Ion { export class ToolbarTitle extends Ion {
constructor( constructor(