Angular & Ionic Project Little white sum up some of the trampled pits

Source: Internet
Author: User
Tags anonymous file upload json min

Some of the most recent stupid and stupid pits ~ ~ ~


Angular Http-server cannot be started successfully after using CTRL + Z shutdown

The reason is CTRL + C to shut down correctly. CTRL + Z does not close properly


Ionic Run Android Error

error:no emulator images (AVDS) found.

1. Download desired System Image by running:/users/lulifei/develop/android-sdk-macosx/tools/android SDK

2. Create an AVD by running:/users/lulifei/develop/android-sdk-macosx/tools/android AVD

hint:for A faster emulator, use an Intel System Image and install the HAXM device driver

The device could not be found

Set the USB pilot mode to the media device.


error:[$compile: ctreq] http://errors.angularjs.org/1.5.9/$compile/ctreq?p0=sttable&p1=stsearch

At http://localhost:8888/lib/js/main.min.js:2:412

At X (http://localhost:8888/lib/js/main.min.js:3:2101)

At p (http://localhost:8888/lib/js/main.min.js:2:31411)

At a (http://localhost:8888/lib/js/main.min.js:2:27317)

At a (http://localhost:8888/lib/js/main.min.js:2:27334)

At a (http://localhost:8888/lib/js/main.min.js:2:27334)

At a (http://localhost:8888/lib/js/main.min.js:2:27334)

At a (http://localhost:8888/lib/js/main.min.js:2:27334)

At p (http://localhost:8888/lib/js/main.min.js:2:31316)

At a (http://localhost:8888/lib/js/main.min.js:2:27317) <div class= "widget" ng-transclude= "" >

(anonymous) @ main.min.js:3

Error

Did not add st-table= "rowcollection" to the table.


Smart-table the input is not recognized when search

Reason:

Join st-table= "displayedcollection" st-safe-src= "RowCollection"

Where, "Displayedcollection" is in the HTML, "RowCollection" is assigned in JS

Note aligning the elements of head and body


Login Error 404 Not Found

Cordova Plugin Remove Cordova-plugin-whitelist

Then renstalled it

Cordova Plugin Add Cordova-plugin-whitelist


Barcodescanner is not defined;

Refer to the online tutorials:

Https://forum.ionicframework.com/t/cannot-read-property-barcodescanner-of-undefined-cordova/5290/3

Run under Project path

Cordova Plugin Add Https://github.com/wildabeast/BarcodeScanner.git


Referenceerror:baidu_location is not defined

At Scope. $scope. Tirarfoto (File:///android_asset/www/js/lotsearch.js:21:6)

AT FN (eval at <anonymous>

Install the following plugins

http://blog.csdn.net/zhang_shi_yu920/article/details/51469329

Uncaught Typeerror:n.go is not a function

At Object.success (dashboard.min.js:3)

At Fire (jquery-latest.js:3119)

At Object.firewith [as Resolvewith] (jquery-latest.js:3231)

At Do (jquery-latest.js:9275)

At Xmlhttprequest.callback (jquery-latest.js:9685)

$cookieStore ' In the controller, you can identify


QRCode not recognized

Typeerror:jquery (...). QRCode is not a function

At R (http://localhost:8888/js/dashboard.min.js:13:54)

At New Qrctrl

Change the plug-in;

It doesn't work when it's loaded; set Ng-init


Bad Request

Not parsed into JSON

data: JSON. stringify (data),

parseint

Parsefloat

File upload upload not recognized

Installing Bower Install Ng-file-upload-save

Reference URL

Https://github.com/danialfarid/ng-file-upload


Bower installed and NPM install plugin

Installed in the project root with bower install and NPM install to different locations in the project,

Installed in the bower_compents with Bower install,

Installed in the node_modules with Nam Install,

However, when referenced in the project, installation in Node_modules cannot be found

Need to be installed in bower_compents.

Solve:

Echo $PATH

/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

Vi/etc/profile

sudo vi ~/.BASHRC

Password:

$ sudo vi ~/.BASHRC

$ VI. bash_profile

$ npm config Get GlobalConfig

/usr/local/etc/npmrc

/usr/local/lib/node_modules

Export Node_path=/usr/lib/node_modules: $NODE _path



Reference:

[1]http://stackoverflow.com/questions/33248577/trying-to-setup-sort-on-a-table-using-smart-table-in-angularjs

[2]HTTPS://FORUM.IONICFRAMEWORK.COM/T/CANNOT-READ-PROPERTY-BARCODESCANNER-OF-UNDEFINED-CORDOVA/5290/3

[3]http://blog.csdn.net/zhang_shi_yu920/article/details/51469329

[4]https://github.com/danialfarid/ng-file-upload

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.