首页 \ 问答 \ Ionic2和IonicDeploy(Ionic2 and IonicDeploy)

Ionic2和IonicDeploy(Ionic2 and IonicDeploy)

我最近一直在尝试使用Angular2和Ionic2框架编写类似于Dots的游戏,但是在我遇到问题的早期。 我想使用部署功能摆脱电缆并在我的移动设备上无缝更新应用程序,但是我意识到我不知道如何将部署服务导入到我的项目中。 我将添加我正在使用TypeScript。

我一直在互联网上看,但看起来只有我遇到过这样的问题。 部署是否与Ionic2一起使用? 如果问题是天真的,或者我的错误是愚蠢的,请原谅我。 我会感激任何帮助。

我的主页代码:

import {Page} from 'ionic-angular';


@Page({
  templateUrl: 'build/pages/main/main.html'
})
export class MainPage{

  score: number;
  moves: number;

  doUpdate(){
      //IonicDeploy goes here
  }

}

I've recently been trying to write a game similar to Dots using Angular2 and Ionic2 frameworks, however early on I've run into a problem. I wanted to use the Deploy feature to get rid of cables and seamlessly update the app on my mobile devices, however I realised I have no idea how to import the deploy service into my project. I'll add I'm using TypeScript.

I've been looking all over the Internet, however it appears only I've been faced with such a problem. Does Deploy work with Ionic2 at all? Please forgive me if the question is naive or my mistake is foolish. I'll be grateful for any help.

My code for the main page:

import {Page} from 'ionic-angular';


@Page({
  templateUrl: 'build/pages/main/main.html'
})
export class MainPage{

  score: number;
  moves: number;

  doUpdate(){
      //IonicDeploy goes here
  }

}

原文:https://stackoverflow.com/questions/36659216
更新时间:2023-12-02 17:12

最满意答案

尝试使用preload属性。


Try using the preload attribute.

相关问答

更多
  • 而不是jPlyer你需要使用jPlayerPlaylist,需要做类似下面的事情 Player