Category: Angularjs

AngularJS Services 0

AngularJS Services (Service VS Controllers)

Until now, we have dealt with data-binding in AngularJS. We have seen how to take data from our controllers and get it into the UI, and ensure that whenever the user interacts with or...

quiz app 1

Quiz App using AngularJS

Quiz App tutorial is not an introduction to AngularJS but to demonstrate how quickly one can build a simple well-structured web application. This is targeted towards people who are already familiar with the basics of...

1

Displaying Error messages and Styling Forms

Displaying Error Messages What can we do with all these validators? We can of course check the validity of the form, and disable the Save or Update button accordingly. But we also want to...

0

Introduction to Form Validation and States

In the previous blog I asked you to create a simple form. I received more mails that gives me some pleasure to start this new form validation post (Review is in progress. Will publish...

0

Working with ng-model

In the previous blog, we saw the ng-bind directive, or its equivalent double-curly {{ }} notation, which allowed us to take the data from our controllers and display it in the UI. That gives...

0

What is Unit Testing and Why in Angularjs?

Unit testing is the concept of taking a single function or part of our code, and writing assertions and tests to ensure that it works as intended. While very common on the server side,...

0

Working with ng-repeat (PART 2)

Track by ID By default, ng-repeat creates a new DOM element for each value in the array or object that we iterate over. But to optimize performance, it caches or reuses DOM elements if...

ng-repeat part 1 0

Working with ng-repeat (PART 1)

The ng-repeat directive is one of the most versatile directives in AngularJS, and can be used for a whole variety of situations and requirements. We saw how we can use it to repeat an array in...

0

Working with Arrays in AngularJS

We have seen how to create a controller, and how to get data from the controller into the HTML. But we worked with very simplistic string messages. Let’s now take a look at how...

0

Controllers in AngularJS

We saw how to create modules, but what do we do with them? So far, they have just been empty modules. Let’s now take a look at controllers. Controllers in AngularJS are our workhorse,...