Ionic Project Ngcordova Plugin

Source: Internet
Author: User

One, $cordovaDialogs (dialog box plugin)

http://ngcordova.com/docs/plugins/dialogs/

One problem is that the location of the OK and Cancel buttons running on the browser and on the mobile device is reversed (right on the mobile device)

Also can use Ionic's http://www.ionicframework.net/docs/api/service/$ionicPopup/(Didn't try, forgot Ionic own)

Two, $cordovaToast (Short message plugin)

http://ngcordova.com/docs/plugins/toast/

Note: Using this plugin will cause errors in browser debugging because this special plugin only works on mobile devices.

Three, $cordovaProgress (progress bar plugin)

http://ngcordova.com/docs/plugins/progressIndicator/

The error did not find the reason, instead of using ionic $ionicLoading

http://www.ionicframework.net/docs/api/service/$ionicLoading/#

Four, $cordovaFile (file read and write plugin)

http://ngcordova.com/docs/plugins/file/

Note Update Ngcordova and corresponding plug-ins, as if the parameters do not correspond to cause a first-report encoding error

$cordovaFile. Checkfile (Cordova.file.dataDirectory, "Some_file.txt")      . Then (function (Success) {        //success      }, function (Error) {        //Error      });
$cordovaFile. Readasdataurl (Cordova.file.externalRootDirectory, "Dcim/camera" + imageuri.substring ( Imageuri.lastindexof ('/')))                    . Then (function (Success) {                    $scope. Images_list.push (success);                    }, function ( Error) {                       alert ("Error" +error);                    });

A method that only tries to verify that the file exists and reads the picture file as a 64-bit encoded string

(The first path parameter can only write several of its specified, cannot write the full path, the second name parameter to complete the remaining path plus the file name)


Ionic Project Ngcordova Plugin

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.