JavaScript is undoubtedly one of the most popular programming languages in the world. It’s used almost everywhere: from large-scale web applications to complex servers to mobile and IoT devices. Part #1: Introduction ECMAScript is a general-purpose programming language, standardised by Ecma International according to the document ECMA-262. It is a JavaScript standard meant to ensure... Continue Reading →
G Suite for your business – Business email on Google Free
What is G Suite? G Suite is a cloud-based productivity suite that helps teams communicate, collaborate and get things done from anywhere and on any device. It's simple to set up, use and manage, so that your business can focus on what really matters. These are some highlights:Business email for your domainLook professional and communicate... Continue Reading →
Angularjs Factory Unit Test Case
Factory Code (function() { 'use strict'; angular .module('myApp.restangular') .factory('Users', Users); Users.$inject = [ 'Restangular', 'apiUrl' ]; function Users(Restangular, apiUrl) { var Users = Restangular.service('users'); Restangular.extendModel('users', function(model) { model.isRecent = function() { var createdAt = moment.utc(this.created_at); var difference = moment.duration(moment.utc().diff(createdAt)); return difference.asHours() < 48; } model.lastConnection = function() { return moment.utc(this.updated_at).fromNow(); }; model.isOnline = function() {... Continue Reading →
What is the difference between compile and link function in angularjs ?
What is the difference between compile and link function in angularjs ? In compile phase, the angular parser starts parsing the DOM and whenever the parser encounters a directive it creates a function. These functions are termed as a template or compiled functions. In this phase, we do not have access to the $scope data.... Continue Reading →