mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 20:33:32 +08:00
test(): add apple-mobile-web-app-capable metatag
This commit is contained in:
@ -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[]) {
|
||||
|
Reference in New Issue
Block a user