AngularJS ng-hide – conditionally hide an element
AngularJS directive ng-hide hides an element if the expression ng-hide evaluates to true. Under the hood it adds or removes class ng-hide to the element. read more
AngularJS ng-focus example
AngularJS ng-focus expression is evaluated when an element (window, input, select, textarea, a) gets focus.
AngularJS ng-disabled – conditionally disable an element
AngularJS directive ng-disabled sets the disabled attribute on the element if the expression ng-disabled evaluates to true.
AngularJS ng-cloak examples
AngularJS ng-cloak directive is used to prevent the Angular html template from being briefly displayed by the browser in its raw (uncompiled) form while your read more
AngularJS ng-class-even and ng-class-odd example
AngularJS directives ng-class-even and ng-class-odd work like ng-class except that when these are used with ng-repeat, these apply to even and odd rows.
AngularJS ng-class example
AngularJS ng-class directive allows you to dynamically set CSS classes on an element using an expression. The expression can be of one of these three read more
AngularJS ng-checked example
AngularJS ng-checked sets the checked attribute on the element, if the expression inside ng-checked is true.
AngularJS ng-change example
AngularJS ng-change expression is evaluated when the user changes the input.
AngularJS ng-blur example
AngularJS ng-blur expression is evaluated when an element (window, input, select, textarea, a) loses focus.
AngularJS ng-bind-template example
AngularJS ng-bind-template attribute take a template string and can contain multiple {{ }} expressions.
AngularJS ng-bind example
AngularJS ng-bind attribute tells Angular to replace the text content of the specified HTML element with the value of a given expression. It also updates read more
AngularJS ng-dblclick examples
Example1 AngularJS ng-gblclick example to increment a variable on every double click. Example2 AngularJS ng-dblclick example to increment a variable on every double click. This read more
AngularJS ng-click examples
Example1 AngularJS ng-click example to increment a variable on every click. Example2 AngularJS ng-click example to increment a variable on every click. This time use read more
Java – this keyword
Using this to access a field In case a field is shadowed by method or constructor parameter, the field can be accessed using this keyword. read more
Chrome – remove an accepted certificate
Steps to remove an accepted certificate (e.g. a self signed certificate) from Chrome browser. Click on Chrome settings. On settings page click on advanced settings read more
Rsync – exclude specific file extension
To exclude a specific file extension (say .class) we can use –exclude “*.class” (or –exclude=”*.class”). Note that it can be repeated multiple time. $ rsync read more
Git – show log of one user’s commits
git log –author=pattern can be used to show log of all users matching a specific pattern. $ git log –author=Ram $ git log –author=”R.*m” // read more
Java – static and instance variables
Static variables are created once for a class and shared by all instances. Static variable is created the moment class is loaded. static variable example read more
Git – checkout remote branch
To checkout remote branch and track it from its remote origin $ git fetch $ git branch -v -a ##List available remote branches $ git read more