Home » JavaScript (page 4)

JavaScript

AngularJS Get Url Parameters Example

Hello readers, in this tutorial, we will understand how to retrieve the URL parameters in the angular web applications. For this tutorial, we’ll create two links on the main page and display the results based on the specified routes and the URL parameters. 1. Introduction Before we begin with the tutorial, let’s take a look at the Angular JavaScript and ...

Read More »

AngularJS HTTP Post Example

Hello readers, in this tutorial, we will learn how to implement the angular library $http.post() method in the angular web applications. For this tutorial, we’ll send an HTTP post request to the web server. 1. Introduction AngularJS is a JavaScript MVC or Model-view-controller framework developed by Google that lets developers build well structured, easily testable, and maintainable front-end applications. The ...

Read More »

AngularJS HTTP Get Example

Hello readers, in this tutorial, we will learn how to implement the angular library $http.get() method in the angular web applications. For this tutorial, we’ll create a sample JSON structure, consume it for reading the data from the web-server, and display the same data in the view. 1. Introduction AngularJS is a JavaScript MVC or Model-View-Controller framework developed by Google ...

Read More »

VueJS Components with CoffeeScript for Rails

The components aspect of VueJS is one of the most attractive features VueJS brings to your frontend development. It allows for composable, reusable, and protected scope code, styles, and HTML. Working with protected scopes is the smart way for implementing coherent systems. And with the added benefit of VueJS protecting your style’s scope to only affect your specific component, you’ll ...

Read More »

AngularJS Get Element by Id Example

Hello readers, in this tutorial, we will understand how to get a DOM element by id in the angular web applications. For this tutorial, we’ll create a simple button which is reading the id of an HTML element using the inbuilt angular.element method. 1. Introduction Before we begin with the tutorial, let’s take a look at the Angular JavaScript and ...

Read More »

AngularJS File Upload Example

Hello readers, in this tutorial, we will understand how to upload a file or files in the angular web applications. For this tutorial, we’ll create a simple form that has a file upload field and binds it to the angular controller to get the data from the form. 1. Introduction Before we begin with the tutorial, let’s take a look ...

Read More »

AngularJS forEach() Example

Hello readers, in this tutorial, we will understand how to add the forEach() method in the angular web applications. 1. Introduction Before we begin with the tutorial, let’s take a look at the Angular JavaScript and its characteristics. 1.1 Angular JavaScript Angular is a JavaScript MVC or Model-View-Controller framework developed by Google that lets developers build well structured, easily testable, ...

Read More »

A walk through the GWT wrapper for Vue.js: vue-gwt

Introduction: Vue.js is one of the most popular JavaScript frameworks, along with Angular and React. It leverages modern techniques for building front end applications, and can come handy in maintaining apps that require considerable amount of JavaScript and CSS. The perks of Vue.js are numerous, and can be found in their documentation. In this post, we would like to focus ...

Read More »

VueJS as a Frontend for Rails

VueJS is one of the fastest rising stars in the JavaScript frontend ecosystem. It largely embodies simplicity and composability of frontend design solutions without going overboard. It provides a more elegant way to reduce complexity in both scripting and your styling by grouping them into components. This protects your site’s styles from conflicts and also provides logical organization for individual ...

Read More »