如何在Appgyver中的View中添加一个webview
How to add a webview to the View in Appgyver
我已经创建了一个控制器,我打算在 WebView 中加载一个网站。
控制器:
angular
.module('example')
.controller('IndexController', function($scope, supersonic) {
$scope.navbarTitle = "Index";
alert("Starting");
});
查看:
<div class="padding" ng-controller="IndexController">
<super-navbar>
<super-navbar-title>
Hello!
</super-navbar-title>
</super-navbar>
<super-navigate view-id="using-the-scanner">
<button class="button button-block button-positive icon-left super-wand">Using the AppGyver Scanner</button>
</super-navigate>
<super-navigate view-id="learn-more">
<button class="button button-block button-positive icon-left super-university">Learn more</button>
</super-navigate>
</div>
只找到JS代码:
var googleLayer = new steroids.views.WebView("http://www.google.com");
如何将其添加到视图中?
准备就绪后,请致电
steroids.layers.push(googleLayer);
我已经创建了一个控制器,我打算在 WebView 中加载一个网站。
控制器:
angular
.module('example')
.controller('IndexController', function($scope, supersonic) {
$scope.navbarTitle = "Index";
alert("Starting");
});
查看:
<div class="padding" ng-controller="IndexController">
<super-navbar>
<super-navbar-title>
Hello!
</super-navbar-title>
</super-navbar>
<super-navigate view-id="using-the-scanner">
<button class="button button-block button-positive icon-left super-wand">Using the AppGyver Scanner</button>
</super-navigate>
<super-navigate view-id="learn-more">
<button class="button button-block button-positive icon-left super-university">Learn more</button>
</super-navigate>
</div>
只找到JS代码:
var googleLayer = new steroids.views.WebView("http://www.google.com");
如何将其添加到视图中?
准备就绪后,请致电
steroids.layers.push(googleLayer);