test(): add apple-mobile-web-app-capable metatag

This commit is contained in:
Adam Bradley
2016-06-08 23:19:57 -05:00
parent 1188730f10
commit 14c7bc29a1
4 changed files with 16 additions and 5 deletions

View File

@ -1,5 +1,5 @@
import {Component, ViewChild, ElementRef} from '@angular/core';
import {ionicBootstrap} from '../../../../../src';
import {ionicBootstrap, Platform} from '../../../../../src';
@Component({
@ -7,18 +7,28 @@ import {ionicBootstrap} from '../../../../../src';
})
class E2EPage {
items: any[] = [];
webview: string;
@ViewChild('content') content: ElementRef;
constructor() {
constructor(platform: Platform) {
for (var i = 0; i < 200; i++) {
this.items.push({
value: i,
someMethod: function() {
return `!!`
return '!!';
}
});
}
if (platform.is('ios')) {
if (window.indexedDB) {
this.webview = ': WKWebView';
} else {
this.webview = ': UIWebView';
}
}
}
headerFn(record: any, index: number, records: any[]) {

View File

@ -1,5 +1,5 @@
<ion-navbar *navbar>
<ion-title>Virtual Scroll</ion-title>
<ion-title>Virtual Scroll{{webview}}</ion-title>
<ion-buttons end>
<button (click)="reload()">
Reload

View File

@ -549,7 +549,7 @@ export class VirtualScroll implements DoCheck, AfterContentInit, OnDestroy {
if (madeChanges) {
// do not update images while scrolling
this._imgs.toArray().forEach(img => {
this._imgs.forEach(img => {
img.enable(false);
});