filereader is not working in angular 2 angular 4. I found that Filereader needs fileReader.readAsDataURL(event.target.files[0]) to start reading the file.

 

Read More →

Quick htaccess for angular production build whcih we can use under dist folder. I mostly uses the same so took a backup here.

 

Read More →

Use Current Release: At te last update of this tutorial, Node.js 10.0.0 is the current Node.js release available.

Use LTS Release : At the last update of this tutorial, Node.js 8.11.1 is the LTS release available.

testing node.js official website.

Also, check the npm version

 

Read More →

Angular 2 directive to append HTML in directive selector. I was trying creating a star rating directive for angular 5 project. It was really hard search for me to insert HTML in to directive selector. I know an component can easily allows access to append HTML inside the element. But i needed to do this […]

Read More →

How to get recent local time post date from a post stored in UTC date format. moment(this.post.created_at,’YYYY-MM-DD H:m:s’).utc(‘YYYY-MM-DD H:m:s’).local().fromNow() Here is the basic funda you need to follow my current post time stored in this.post.created_at i am converting it into moment using moment.js moment(this.post.created_at,’YYYY-MM-DD H:m:s’) Now we need to get the UTC format of it […]

Read More →

Two months calender code

 

Read More →

Best way to remove index object from the array of object.

     

Read More →

Accessing cloud.google.com bitnami project files from ubuntu Site address http://IPADDRESS/ Admin user: user Admin password (Temporary) : PASSWORD   How to generate a SSH key in your PC ? ssh-keygen (see the path for generating key file enter the key filename “/home/shakalya/.ssh/id_rsa”) dff-ssh-key (if same key file name wanna override?) y (passphrase can be leave empty) (again) cat dff-ssh-key […]

Read More →