Blog

The difference between ng-show vs. ng-if

There are a variety of built-in Angular directives for showing and hiding content on a page.  Ng-show/ ng-hide and ng-if  are commonly used directives for doing this.  Ng-switch and ng-class could also be used to do this (albeit in different ways).  This post will explain how ng-show and ng-if differ in their means of hiding content on a page. Here’s a simple example of ng-show in action: [iframe src="http://embed.plnkr.co/49oD9BTmWjr7Y4Rk5rsB" width="100%" height="500"] There are two buttons in this html but only one is showing at a time.  Each button has an ng-show directive on it.  One button will show if the variable $scope.mute = true and the other if $scope.mute = false.  This is because ng-show takes an expression as an attribute.  If the expression is truthy, it shows that element on the page (and vice versa).  Clicking the button there calls a function muteToggle (using ng-click) which toggles $scope.mute to true...

Read more

Why Use a Task Runner Like Gulp?

There are a lot of tasks involved with creating and deploying a… Read more

Three Quick Reasons to Learn Web Design

In today's world, having a powerful, professional-looking website is an essential for… Read more

How to Get Started With Backbone.js

Backbone.js is a very powerful Javascript library for front end development. Notice… Read more

How To Get Started With AngularJS

AngularJS is the one of the most powerful framework present for front… Read more

Diving Into The Details of Two-Way Data-Binding with AngularJS

Before we get into the details of two way data binding, let’s… Read more

Making Sense of Git – A Visual Perspective

Git is an extremely powerful and popular version control system; however, Git’s… Read more

Which Web Design Courses Will Best Match My Needs?

You want to stay up-to-date with today's web design tools, but these days… Read more

Three Ways to Incorporate Responsive Web Design Best Practices

Raise your hand if the term “Responsive Web Design” has come up… Read more

appendTo and DevelopIntelligence, A New Training Marriage

In November, you may have read the announcement from Mike Hostetler that… Read more