Home » JavaScript (page 5)

JavaScript

Angular.js Components Example

One of the most powerful features in AngularJS are directives, what with them marking a DOM element so that it behaves a certain way. However, properly using and constructing them would give us a more robust application, as directives are essential in creating flexible Javascript and template code for our app. With the feature-set that AngularJS has to offer, we ...

Read More »

AngularJS Unit Testing With Karma and Jasmine

One of the benefits of using AngularJS is that it is designed with testability in mind. Having integrated unit testing can help prevent bugs as projects grow in complexity and the number of developers. It also provides new devs with documentation on how to use existing code. In my last article, I explained how to use Test-Driven Development (TDD) to ...

Read More »

Angular.js App Structure

There are thousands and more developers working daily on apps, regardless of their being web, desktop or mobile applications and independently of the technologies used in them. A very big number of these apps launched daily are built with AngularJS, and they can be of different sizes: very small, small, medium or large scale apps. Keeping in mind the size ...

Read More »

Update DynamoDB Items with Node.js

On a previous post we proceeded into inserting items to DynamoDB using Node.js. DynamoDB also supports updating items. We will use the Login table for the update examples. When issuing an update you must specify the primary key of the item you want to update. var updateName = function(email,fullName,callback) { var docClient = new AWS.DynamoDB.DocumentClient(); var params = { TableName:"Users", ...

Read More »

Dynamic component loading with Angular2: replace compile

Just a quick article to show how you can do dynamic compilation in Angular 2. In Angular 1 we had the $compile directive, which we could use to programmatically compile a string and resolve any directives and other variable interpolations. In angular 2 there isn’t really an alternative for this and we have to jump through some hoops to get ...

Read More »

Scan DynamoDB Items with Node.js

On previous posts we covered how to query a DynamoDB database Query DynamoDB Part 1 Query DynamoDB Part 2. Apart from issuing queries DynamoDB also offers Scan functionality. What scan does is fetching all the Items you might have on your DynamoDB Table. Therefore scan does not require any rules based on our partition key or your global/local secondary indexes. ...

Read More »

AngularJS Navigation Example

By now you’ve surely heard of the superheroic Javascript framework named Angular, and if not, then you’ll hear about it very soon if web programming is a part of your world, so you had better take a look here! Angular is by far the best in handling dynamic views in HTML, and it appears that the trend will continue. Now ...

Read More »

Query DynamoDB Items with Node.js Part 2

On a previous post we had the chance to issue some basic DynamoDB query actions. However apart from the basic actions the DynamoDB api provides us with some extra functionality. Projections is a feature that has a select-like functionality. You choose which attributes from a DynamoDB Item shall be fetched. Keep in mind that using projection will not have any impact on ...

Read More »

Getting Started with Angular.js

There are new tools and technologies appearing in the internet everyday, all with their special characteristics and their similarities and differences with the rest of all what have already been established. While a big number of them flop just as quickly as they were made visible (with good reason too!), Angular.js will be around for quite some time in the ...

Read More »

Want to take your WEB dev skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • PHP Programming Cookbook
  • jQuery Programming Cookbook
  • Bootstrap Programming Cookbook
  • Building WEB Apps with Node.js
  • CSS Programming Cookbook
  • HTML5 Programming Cookbook
  • AngularJS Programming Cookbook