-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(angular): ViewChild() fix (#17037)
fixes #17034
- Loading branch information
1 parent
169da37
commit 27a4709
Showing
12 changed files
with
406 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,39 @@ | ||
// export custom directives | ||
export * from './directives'; | ||
// DIRECTIVES | ||
export { BooleanValueAccessor } from './directives/control-value-accessors/boolean-value-accessor'; | ||
export { NumericValueAccessor } from './directives/control-value-accessors/numeric-value-accesssor'; | ||
export { RadioValueAccessor } from './directives/control-value-accessors/radio-value-accessor'; | ||
export { SelectValueAccessor } from './directives/control-value-accessors/select-value-accessor'; | ||
export { TextValueAccessor } from './directives/control-value-accessors/text-value-accessor'; | ||
export { IonTabs } from './directives/navigation/ion-tabs'; | ||
export { IonBackButtonDelegate } from './directives/navigation/ion-back-button'; | ||
export { NavDelegate } from './directives/navigation/nav-delegate'; | ||
export { IonRouterOutlet } from './directives/navigation/ion-router-outlet'; | ||
export { RouterLinkDelegate } from './directives/navigation/router-link-delegate'; | ||
export { NavParams } from './directives/navigation/nav-params'; | ||
export { IonVirtualScroll } from './directives/virtual-scroll/virtual-scroll'; | ||
export { VirtualItem } from './directives/virtual-scroll/virtual-item'; | ||
export { VirtualHeader } from './directives/virtual-scroll/virtual-header'; | ||
export { VirtualFooter } from './directives/virtual-scroll/virtual-footer'; | ||
export * from './directives/proxies'; | ||
|
||
// export custom providers | ||
export * from './providers'; | ||
// PROVIDERS | ||
export { AngularDelegate } from './providers/angular-delegate'; | ||
export { ActionSheetController } from './providers/action-sheet-controller'; | ||
export { AlertController } from './providers/alert-controller'; | ||
export { Events } from './providers/events'; | ||
export { LoadingController } from './providers/loading-controller'; | ||
export { MenuController } from './providers/menu-controller'; | ||
export { PickerController } from './providers/picker-controller'; | ||
export { ModalController } from './providers/modal-controller'; | ||
export { Platform } from './providers/platform'; | ||
export { PopoverController } from './providers/popover-controller'; | ||
export { ToastController } from './providers/toast-controller'; | ||
export { NavController } from './providers/nav-controller'; | ||
export { DomController } from './providers/dom-controller'; | ||
export { Config } from './providers/config'; | ||
|
||
// ionic route reuse strategy | ||
export * from './util/ionic-router-reuse-strategy'; | ||
// ROUTER STRATEGY | ||
export { IonicRouteStrategy } from './util/ionic-router-reuse-strategy'; | ||
|
||
// export module | ||
// PACKAGE MODULE | ||
export { IonicModule } from './ionic-module'; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { browser, element, by } from 'protractor'; | ||
import { getProperty, setProperty, handleErrorMessages } from './utils'; | ||
|
||
describe('view-child', () => { | ||
|
||
beforeEach(async () => { | ||
await browser.get('/view-child'); | ||
}); | ||
afterEach(() => { | ||
handleErrorMessages(); | ||
}); | ||
|
||
it('should get a reference to all children', async () => { | ||
// button should be red | ||
expect(await element(by.css('#color-button.ion-color-danger')).isPresent()).toBeTruthy(); | ||
|
||
// tabs should be found | ||
expect(await element(by.css('#tabs-result')).getText()).toEqual('tabs found'); | ||
}); | ||
|
||
}); |
Oops, something went wrong.