Unexpected token p in JSON at position 0 in Angular

Follow the following steps to solve this error. You can check if your value is not null before JSON.parse.

error in node_modules/ng2-dragula/dist/mockdrake.d.ts

npm install @types/dragula@^2.1.33

cannot find module ‘@angular/compiler-cli’ ng serve in Angular

remove node_modules folder then use the following commands $ npm install --save-dev @angular/cli@latest $ npm...

Could not find module “@angular-devkit/build-angular” in Angular

Follow the steps below Could not find module “@angular-devkit/build-angular” Install @angular-devkit/build-angular as dev dependency.

How to change permission of folder with files in Windows using...

This tutorial explains how to run linux(Ubuntu/Centos etc.) shell commands in windows. then you can easily can change the permission of folders...

How to run linux comannds in Windows

This tutorial explains how to run linux(Ubuntu/Centos etc.) shell commands in windows You need to install cygwin software...

Transfer the data one page to another page in PHP

This tutorial explains how to transfer/send/pass the data from one page to another page using different methods like Html form, Sessions, Cookies.

GSTIN syntax Validation in Jquery

This example explains how to validate Indian GSTIN syntax in html page using jquery. var gstin=...

PAN syntax Validation in Jquery

This example explains how to validate Indian PAN syntax in html page using jquery. var pan =...

PAN syntax Validation in html

This example explains how to validate Indian PAN syntax in html page. <form action="action.php" method="post"> PAN No.: <input type="text" name="pan_no"...

GSTIN syntax validation in PHP

This example explains how to validate GSTIN syntax in PHP. <?php function check_gstin($number) { ...

Validate GSTIN syntax in HTML

This example explains how to validate Indian GSTIN syntax in html page. <form action="action.php" method="post"> GSTIN: <input type="text" name="gstin" pattern="^(0||3)(){5}(){4}(){1}(){1}(){1}(){1}?"...

Generate random string in PHP

This example explains how to generate random string in PHP using function. <?php function generate_id($length = 10) { ...

Convert array to json object in PHP

This tutorial explains how to convert array to json object in PHP. <?php $arr=array(); $arr = "SAM"; $arr = 9874563210; $arr = "example@domain.com"; $result_json...

Indian Mobile validation in HTML with Regular Expression

This example explains how to validate the Indian Mobile Number in html page with Pattern attribute in html form using regular...

Email validation in HTML with Regular Expression

This example explains how to validate the email in html page with Pattern attribute in html form using regular expression.

Email validation in JQuery with Regular Expression

This example explains how to validate the email in html page with Jquery using regular expression. var textinput =...

Change the Max_Size and Upload_max_filesize in PHP on Amazon Linux Server

This example shows how to change the post_max_size and upload_max_filesize in configuration file so you will be allowed...

File upload in PHP on Amazon EC2 Linux Server

This article explains that how to upload a file to folder in PHP on Linux Server Follow the steps

Find the second highest value in SQL

Here is the example that explains how to find the second highest value from the table in MySQL. SNNameMarks1John802Sam853Jinni924Smith95