Skip to main content

Posts

Make page reload in angular if the dom is having problem with jquery javascript ot require js anything in dom is not working.

Make page reload in angular if the dom is having problem with jquery javascript ot require js anything in dom is not working. myApp.controller('mainController', ['$scope', '$rootScope', '$location', '$log', '$route', '$cookieStore', '$interval', function($scope,$rootScope,$location,$log,$route,$cookieStore,$interval){       $rootScope.hideit = false;               var startTime = new Date();       var firstR = new Date($cookieStore.get('firstreload'));       var diff = startTime - firstR;       var finalDiffToCheck = diff/1000;       if($cookieStore.get('firstreload') === undefined){         $log.info("case page has not been loaded at all");       }       if(finalDiffToCheck > 4){         $log.info("case page has to be reloaded");         window.location.reload(); ...

How to install sass for desiger scss.

How to install sass for desiger scss. 1. Google ruby 2. http://rubyinstaller.org/ 3. then open cmd 4. gem install sass 5. then run command c:\sass Then cd where your css will be then create a file .scss Then run command c:\path\sass --watch C:\wamp\www\sasstut\style.scss:C:\wamp\www\sasstut\style.css Then write your sass in scss file and enjoy sass

How to remove file from git?

How to remove file from git? Use  git rm : git rm file1.txt git commit -m "remove file1.txt" But if you want to remove the file only from the Git repository and not remove it from the filesystem, use: git rm --cached file1.txt