Extending Javascript objects with a help of AngularJS extend method

Multiple ways of extending javascript objects /** * One-way reference from subclass to superclass (instance) * Most of the time this is what you want. It should be done * before adding other methods to Subclass. */ ChildClass.prototype = new SuperClass(); /** * Two-way reference * Superclass will also get any Subclass methods added later. […]... Read More

Be that likable person

Become genuinely interested in other people. Smile. Remember that a person’s name is to that person the sweetest and most important sound in any language. Be a good listener. Encourage others to talk about themselves. Talk in terms of the other person’s interests. Make the other person feel important and do it sincerely. Smile, smile, […]... Read More

AngularJS directive multiple element

How to get AngularJS directive multiple element You probably know there exists opening ng-repeat-start and finishing directive ng-repeat-end like: <ul> <li ng-repeat-start="user in users"> {{user.firstName}} </li> <li ng-repeat-end> {{user.firstName}} </li> </ul> You would think it is a specially made directive that works that way but actually it is not. It is part of any directive so you […]... Read More