Transclude:'element' demystified

Transclusion is no doubt a very confusing topic in AngularJS. It has two ways of implmentation : 1) transclude: 'true' 2) transclude: 'element' as far as transclude: 'true' goes, one can grasp it with little effort but transclude: 'element' seems like a lot of work . So, what thus transclude:'element' do ? It transcludes the whole element ,i.e, it copies the content inside the directive as well as the directive tag  itself and places one or more copies of it with the correct scope . The transclusion is achieved via transclusion function...

What is a prototype based language in terms of javascript

Today i was going through the basics and since switching from a class based language to a prototype based language can be a a little tricky , i will leave this post here. Now. What the wiki says : Prototype-based programming is a style of object-oriented programming in which behaviour reuse (known as inheritance) is performed via a process of cloning existing objects that serve as prototypes. This model can also be known as prototypal, prototype-oriented, classless, or instance-based programming. Delegation is...