Posts

WordPress Disable Block Editor and Enable Classic Editor

Image

AngularJs: How to check for changes in file input fields?

Image
angular . module ( ' app ' , []) . controller ( ' MainCtrl ' , MainCtrl) . directive ( ' fileChange ' , fileChange); function MainCtrl ( $scope ) { $scope . upload = function () { // do something with the file alert ( $scope . file . name ); }; } function fileChange () { return { restrict : ' A ' , require : ' ngModel ' , scope : { fileChange : ' & ' }, link : function link ( scope , element , attrs , ctrl ) { element . on ( ' change ' , onChange); scope . $on ( ' destroy ' , function () { element . off ( ' change ' , onChange); }); function onChange () { ctrl . $setViewValue (element[ 0 ]. files [ 0 ]); scope . fileChange (); } } }; } < div ng-app = " app " ng-controller = " MainCtrl " > < input t...

Install and configure Laravel 5 with WAMP server in VirtualHost

Image
In this tutorial, I am going to show you how to install Laravel 5.5 on WAMP server and a simple way to create and configure a VirtualHost using WAMP server.