簡體   English   中英

如何在Appgyver中的視圖中添加Web視圖

[英]How to add a webview to the View in Appgyver

我已經創建了一個Controller,並且打算在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);

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM