Developing and Styling Shadow DOM Elements
:host and ::shadow pseudo selector can be used to style the HTML element inside shadow root. A shadow root can be created using createShadowRoot() method. In this demo, “We will create a custom element and style the HTML present inside shadow DOM”. A custom element can be referred in 2 ways.Inside its template it […]
AngularJS copy() and extend() Method Example
AngularJS provides copy() and extend() method for object manipulation. angular.copy(source,destination) method supports deep copy where destination object elements are deleted and source elements are copied to destination. angular.extend(destination,source) method does not support deep copy.Only enumerable object properties are copied from source to destination. In this demo, “We have created 2 sets of array and […]
ReactJS : Getting Started
ReactJS is the library form Facebook to develop component. JSX(JavaScript Syntax Extension) is the library for transforming XML based syntax code to pure JavaScript. In this Demo, “We will create a sample application using ReactJS and JSX”. A JSX script will have type text/jsx. A annotated comment need to be added in beginning of […]
AngularJS Utility Methods
AngularJS provides many utility method like isObject,isString,isDefined, etc to check the type of the input. In this demo, “We will checkout some utility methods that returns BOOLEAN values on call”. All these method has similar signature like isXxxxx(). Below code shows the use of some utility methods that are present inside the angular object. […]