background preloader


Facebook Twitter

Building a Simple AngularJS Print Directive. The Web Dev Zone is brought to you by Stormpath—offering a pre-built Identity API for developers.

Building a Simple AngularJS Print Directive

Easily build powerful user management, authentication, and authorization into your web and mobile applications. Download this Forrester report on the new landscape of Customer Identity and Access Management. Last week I wrote a simple print button directive for an application that uses AngularJS as its client-side framework. The requirement of the button was to enable the printing of a DOM element that included some content. Css - What is the difference between ng-class and ng-style? Routing - AngularJS + Base Href Case Sensitive? Internet explorer - Handling IE's clear button with AngularJS binding. Removing the “#” Sign from AngularJS URLs with IIS Server. Introduction Angular helps in creating single page application easily by adding routing using an Angular module called 'ngRoute', but by applying it, your URLs will be prepended with a hash character.

Removing the “#” Sign from AngularJS URLs with IIS Server

However, there is a way to remove the hash character which makes your URLs more user-friendly. In this tip, we will explain step by step how to remove the # from AngularJS URLs. Before we get started, assume that we have a small app called and you can check the office departments and employees by navigating to and URLs. Make It Easy: Angular js add class to active element. Here I am going to explain how to add active class on dynamically added content or link while on clicking.

Make It Easy: Angular js add class to active element

View Controller $ function(item) { $scope.selected = item; }; $scope.isActive = function(item) { return $scope.selected === item; }; Click on any link, active class will be added to the active element. Demo Play in fiddle. Unlimited Load Testing. Angular IE Caching issue for $http. Sort and Filter a Table Using Angular. We will be accomplishing this sorting feature using two of the variables that we created earlier (

Sort and Filter a Table Using Angular

Displaying Groups with AngularJS ng-repeat-start and ng-repeat-end (with Example) Edit fiddle. Using AngularJS watch to get drop-down's selected item not working. Extending HTML with AngularJS Directives. Introduction to AngularJS AngularJS is Google's framework for developing Web applications.

Extending HTML with AngularJS Directives

Angular provides a number of essential services that work very well together and were designed to be extensible. These services include data-binding, DOM manipulation, routing/view management, module loading, and more. Angular Tutorial. Angularjs - Error when injecting angular-animate.js. 5 Angular JS Seeds & Bootstrap Apps. In this post you will find 5 Angular JS Seeds and Bootstraps Apps you may want to add to your list for future use.

5 Angular JS Seeds & Bootstrap Apps

5 Angular JS Seeds & Bootstrap Apps. Angular.js Tutorial - Part 2. Introduction With the many tools available to aid in developing AngularJS applications, many people have the impression that it’s an extremely complicated framework, which is not at all the case.

Angular.js Tutorial - Part 2

That’s one of the main reasons I started this tutorial series. In part one we covered the basics of the AngularJS framework and started out by writing our first application. Building a Web App From Scratch in AngularJS. In a previous AngularJS tutorial I covered all the basics of how to get up and running with Angular in around 30 minutes.

Building a Web App From Scratch in AngularJS

This tutorial will expand on what was covered there by creating a simple real world web application. This simple web application will allow its users to view, search and filter TV Show Premieres for the next 30 days. As a keen series viewer, I am always looking for something new to watch when my favorite shows are off air, so I thought I would create an app to help me find what I am looking for.

Before we get started, you may want to take a look at the demo from above, to see what we will be creating in this tutorial. To begin, we need a skeleton AngularJS application which already has all the required JavaScript and CSS to create the TV Show Premieres app. Once you have downloaded the files you should have a directory structure as shown below: The first thing we are going to need to create our TV Show app, is information about TV shows.

8 Tips for Angular.js Beginners. We started working with Angular.js recently and after spending a few days on it, I realised that there a big need for beginner tutorials on it.

8 Tips for Angular.js Beginners

I’ve tried to document some of the things you might need on day 1. 1. The documentation still sucks so it’s okay if you’re taking more time. Johnpapa/angularjs-styleguide. Google's AngularJS Style Guide. This is the external version of a document that was primarily written for Google engineers.

Google's AngularJS Style Guide

It describes a recommended style for AngularJS apps that use Closure, as used internally at Google. Members of the broader AngularJS community should feel free to apply (or not apply) these recommendations, as relevant to their own use cases. Dan Wahlin - Using an AngularJS Factory to Interact with a RESTful Service. What’s covered in this Post? Creating a RESTful ServiceCreating an AngularJS ModuleCreating a FactoryCreating a Controller AngularJS provides a great framework for building robust Single Page Applications (SPAs) and provides built-in support for routing, MV*-style programming, services and factories, modules, testing, and much more.

How to produce a highchart (using angular js) with json data coming from an Ajax request. Jquery - Create a highchart graphic using angular.js. How to produce a highchart (using angular js) with json data coming from an Ajax request. Edit fiddle. Pablojim/highcharts-ng · GitHub. Your First AngularJS App: A Comprehensive Tutorial. What is AngularJS? AngularJS is a JavaScript MVC framework developed by Google that lets you build well structured, easily testable, and maintainable front-end applications. And Why Should I Use It? If you haven’t tried AngularJS yet, you’re missing out. The framework consists of a tightly integrated toolset that will help you build well structured, rich client-side applications in a modular fashion—with less code and more flexibility. AngularJS extends HTML by providing directives that add functionality to your markup and allow you to create powerful dynamic templates.

It also implements two-way data binding, connecting your HTML (views) to your JavaScript objects (models) seamlessly. Angular provides services on top of XHR that dramatically simplify your code and allow you to abstract API calls into reusable services. Finally, I love Angular because of its flexibility regarding server communication. So, Where Do I Begin? First, let’s decide the nature of the app we want to build. <! Routes. Things I Wish I Were Told About Angular.js. Recently I have worked on a project using Angular.js. As of writing this post, it’s a medium sized app (~10 modules, ~20 controllers, ~5 services and ~10 directives) with quite decent test coverage. When I look back, I find myself learning much more about Angular.js than before. It’s not a smooth ride: I’ve gone through lots of refactor and rewrite. And there are lots of things I wish I were told before I started to work on Angular.js Heads up!

About Learning Curve. Google CDN for Angular Dependencies? Shaping up with Angular.js. Ng-book: The Complete Book on AngularJS. Dan Wahlin - AngularJS in 60-ish Minutes – The eBook. Back in April of 2013 I published a video titled AngularJS in 60-ish Minutes on YouTube that focused on learning the fundamentals of AngularJS such as data binding, controllers, modules, factories/services and more (watch it by clicking the link above or scroll to the bottom of this post). One of the people that watched the video was Ian Smith (his blog is at But, Ian did much more than just watch it. He took the time to transcribe the audio into text, added screenshots, and included the time that the topic appears in the original video. Here’s an example of one of the pages: Read Practical AngularJS. Introduction This book contains the AngularJS related blog posts posted on Dinis Cruz’ blog at This is the first draft release of this book, so please send your sugesttions, criticisms, ideas or comments to Notes about current structure The first version of this book had the chapter order created by the original ‘import from blogger’ (i.e. by publish order).

In the current version, the posts are split into the following areas: “Using AngularJS”, “KarmaJS”, “Firebase”, “Misc Tricks”, “IDEs”, “Troubleshooting”, “Appendices”, which is a filter based on technology. About the Author Dinis Cruz is a Developer and Application Security Engineer focused on how to develop secure applications. After many years (and multiple roles) Dinis is still very active at OWASP, currently leading the O2 Platform project and helping out other projects and initiatives.

Table of Contents | Code Change log: Recipes with Angular.js - Home. Getting started. Grunt and Grunt plugins are installed and managed via npm, the Node.js package manager.