访问ionic2 API lockSwipes()方法

时间:2017-02-04 19:32:14

标签: ionic2

Ionic2 docs列出了某些API方法的特定组件。

对于滑块组件,意味着是一个lockSwipes()方法。

虽然存在一些方法,但当我调用lockSwipes()时,我的打字稿编译器告诉我它不存在!

我在2017年2月的最新版本的ionic2。

有人说过修改打字稿定义,但我不知道这是不是我应该/可以做的事情。

以下是我的packages.json

    {
  "name": "myApp",
  "author": "Company!",
  "homepage": "http://www.website.com",
  "private": true,
  "scripts": {
    "ionic:build": "ionic-app-scripts build",
    "ionic:serve": "ionic-app-scripts serve"
  },
  "dependencies": {
    "@angular/common": "2.1.1",
    "@angular/compiler": "2.1.1",
    "@angular/compiler-cli": "2.1.1",
    "@angular/core": "2.1.1",
    "@angular/forms": "2.1.1",
    "@angular/http": "2.1.1",
    "@angular/platform-browser": "2.1.1",
    "@angular/platform-browser-dynamic": "2.1.1",
    "@angular/platform-server": "2.1.1",
    "@ionic/storage": "^1.1.6",
    "ionic-angular": "2.0.0",
    "ionic-native": "2.2.3",
    "ionicons": "3.0.0",
    "moment": "^2.17.1",
    "rxjs": "5.0.0-beta.12",
    "zone.js": "0.6.26"
  },
  "devDependencies": {
    "@ionic/app-scripts": "0.0.45",
    "typescript": "2.0.6"
  },
  "cordovaPlugins": [
    "cordova-plugin-whitelist",
    "cordova-plugin-console",
    "cordova-plugin-device",
    "cordova-plugin-statusbar",
    "cordova-plugin-splashscreen",
    "ionic-plugin-keyboard"
  ],
  "cordovaPlatforms": [],
  "description": "WCGoalsIonic: An Ionic project"
}

0 个答案:

没有答案