1- import { Directive , Component , ElementRef , Optional , OnDestroy } from " @angular/core" ;
1+ import { Directive , Component , ElementRef , Optional , OnDestroy } from ' @angular/core' ;
22import {
33 ActionBar ,
44 ActionItem ,
55 ActionItems ,
66 NavigationButton ,
7- } from " @nativescript/core/ui/action-bar" ;
8- import { Page } from " @nativescript/core/ui/page" ;
7+ } from ' @nativescript/core/ui/action-bar' ;
8+ import { Page } from ' @nativescript/core/ui/page' ;
99
10- import { isBlank } from " ../lang-facade" ;
10+ import { isBlank } from ' ../lang-facade' ;
1111import {
1212 NgView ,
1313 ViewClassMeta ,
1414 ViewExtensions ,
1515 isInvisibleNode ,
1616 isView ,
1717 registerElement ,
18- } from " ../element-registry" ;
18+ } from ' ../element-registry' ;
1919
2020export function isActionItem ( view : any ) : view is ActionItem {
2121 return view instanceof ActionItem ;
@@ -82,18 +82,18 @@ const appendActionItem = (bar: NgActionBar, item: ActionItem) => {
8282 bar . actionItems . addItem ( item ) ;
8383} ;
8484
85- registerElement ( " ActionBar" , ( ) => ActionBar , actionBarMeta ) ;
86- registerElement ( " ActionItem" , ( ) => < any > ActionItem ) ;
87- registerElement ( " NavigationButton" , ( ) => < any > NavigationButton ) ;
85+ registerElement ( ' ActionBar' , ( ) => ActionBar , actionBarMeta ) ;
86+ registerElement ( ' ActionItem' , ( ) => < any > ActionItem ) ;
87+ registerElement ( ' NavigationButton' , ( ) => < any > NavigationButton ) ;
8888
8989@Component ( {
90- selector : " ActionBar" ,
91- template : " <ng-content></ng-content>"
90+ selector : ' ActionBar' ,
91+ template : ' <ng-content></ng-content>'
9292} )
9393export class ActionBarComponent {
9494 constructor ( public element : ElementRef , private page : Page ) {
9595 if ( ! this . page ) {
96- throw new Error ( " Inside ActionBarComponent but no Page found in DI." ) ;
96+ throw new Error ( ' Inside ActionBarComponent but no Page found in DI.' ) ;
9797 }
9898
9999 if ( isBlank ( this . page . actionBarHidden ) ) {
@@ -105,13 +105,13 @@ export class ActionBarComponent {
105105}
106106
107107@Component ( {
108- selector : " ActionBarExtension" ,
109- template : ""
108+ selector : ' ActionBarExtension' ,
109+ template : ''
110110} )
111111export class ActionBarScope { // tslint:disable-line:component-class-suffix
112112 constructor ( private page : Page ) {
113113 if ( ! this . page ) {
114- throw new Error ( " Inside ActionBarScope but no Page found in DI." ) ;
114+ throw new Error ( ' Inside ActionBarScope but no Page found in DI.' ) ;
115115 }
116116 }
117117
@@ -138,7 +138,7 @@ export class ActionBarScope { // tslint:disable-line:component-class-suffix
138138}
139139
140140@Directive ( {
141- selector : " ActionItem" // tslint:disable-line:directive-selector
141+ selector : ' ActionItem' // tslint:disable-line:directive-selector
142142} )
143143export class ActionItemDirective implements OnDestroy {
144144 constructor ( public element : ElementRef , @Optional ( ) private ownerScope : ActionBarScope ) {
@@ -155,7 +155,7 @@ export class ActionItemDirective implements OnDestroy {
155155}
156156
157157@Directive ( {
158- selector : " NavigationButton" // tslint:disable-line:directive-selector
158+ selector : ' NavigationButton' // tslint:disable-line:directive-selector
159159} )
160160export class NavigationButtonDirective implements OnDestroy {
161161 constructor ( public element : ElementRef , @Optional ( ) private ownerScope : ActionBarScope ) {
0 commit comments