Upgrade your local project angular CLI

go to in your project directory:

cd /home/rahul/angular-projects/test

then run below commands:

rm -rf node_modules
npm uninstall --save-dev angular-cli
npm install --save-dev @angular/cli@latest
npm install

Upgrade your npm global version to latest

Run  below command:

sudo npm i -g npm

Upgrade angular 4 project to angular 5

Go to in your project directory:

cd /home/rahul/angular-projects/test-proj

then run below two commands one by one:

npm install @angular/{animations,common,compiler,compiler-cli,core,forms,http,platform-browser,platform-browser-dynamic,platform-server,router}@'^5.0.0' typescript@2.4.2 rxjs@'^5.5.2'

npm install typescript@2.4.2 --save-exact

No such file or directory in /opt/lampp/htdocs/wplms/wp-includes/wp-db.php

Correct the DB_HOST entry in wp-config.php like:

define('DB_HOST', 'localhost:/var/lib/mysql/mysql.sock');

The file path of mysql.sock it varies according to your os / setup. So make it correct accordingly.

Ionic2 remove click delay

In general, Ionic2 recommend only adding (click) events to elements that are normally clickable. This includes <button> and <a> elements. This improves accessibility as a screen reader will be able to tell that the element is clickable.

However, you may need to add a (click) event to an element that is not normally clickable. When you do this you may experience a 300ms delay from the time you click the element to the event firing. To remove this delay, you can add the tappable attribute to your element.

<div tappable (click)="doClick()">I am clickable!</div>