Home » JavaScript (page 30)

JavaScript

Working with Filters in AngularJS

Filters in AngularJS are like data formatters. You could have a currency value stored in a db but want to render it on the UI by formatting it as a double value (with decimals) and prefixing it with currency symbol. This can be achieved using the concept called filters. Filter plays the role in formatting the expression (value or data) ...

Read More »

An End-to-End AngularJS Guide

This isn’t a new eBook, a paperback or an online tutorial. I’ve been writing about Angular since it was in beta and have lots of material I believe is useful for developers with all levels of experience. Instead of forcing you to search haphazardly, this blog post organizes the content so you can jump directly to the post that you ...

Read More »

Javascript Popup Example

In many cases it is useful to add a popup to your page or website. In Javascript there are ready made methods to do that, or you can create popups manually. Take a look!                   Methods for popping up boxes In Javascript there are three kinds of popup boxes: Alert boxes Popup ...

Read More »

Handling Events with Node.js

The events module in Node allows you to emit and handle events. Lot of in-built modules (objects) in Node has the ability to emit or broadcast an event. For example, the fs or File stream module emits an event named ‘data’ every time the data is read from the stream. The objects that emit events are referred to as event ...

Read More »

[Angular2]=”{{‘Hello, World!’}}”

As I mentioned in my recent blog post Angular 2 is a complete rewrite. Many concepts that are known from Angular 1.x are gone or changed dramatically. Angular 2 looks like a completely different framework: no DDO, no $scope, no angular.module and completely rewritten binding and change detection (no ng-model). Although Angular 2 is still work in progress many new ...

Read More »

Learning Angular: Expose an API on your directives

Ever wanted to not only create a nice, visually appealing directive or web component, but to also provide a more rich programmatic API with it? Read on to learn about two potential implementation approaches. This article is part of my “Learning NG” series, presenting some of my adventures while learning Angular. Check out the series intro and other articles. Note, ...

Read More »

Angular.js ng-src Example

Hi there! Today we ‘re gonna see how to include images in our Angular applications. 1. Introduction In plain HTML, we use the <img> tag to insert an image to our site. For example, this could be a sample image insertion:       <img src="image.png" alt="A sample image" height="64" width="64"> Now, in terms of Angular.js and image insertion, one ...

Read More »