Archives
-
Creating Custom AngularJS Directives Part 6 - Using Controllers
Up to this point in the AngularJS directives series you’ve learned about many key aspects of directives but haven’t seen anything about how controllers fit into the picture. Although controllers are typically associated with routes and views, they can also be embedded in AngularJS directives. In fact, there are many scenarios where custom directives can take advantage of controllers to minimize code and simplify maintenance. While using controllers in directives is certainly optional, if you’d prefer to build directives using similar techniques that you use now to build views then you’ll find controllers are essential in many cases. By using controllers, directives start to feel like “child views”.
-
Getting Started with ES6 – Transpiling ES6 to ES5 with Traceur and Babel
In the first post in this series I introduced key features in ECMAScript 6 (ES6), discussed tools that can be used today to transpile code to ES5 so that it can work in today’s browsers, and listed several resources that will help get you started. Before jumping into the first official ES6 feature (that’s coming in the next post) I wanted to write a step-by-step walkthrough that covers how to get the Traceur and Babel transpilers working with Gulp (a JavaScript task runner). I’m also going to sneak in a little TypeScript as well since it’s another option. By getting these tools in place you can start writing ES6 code, convert/transpile it to ES5, and then use the generated code in older browsers. Going that route lets you take advantage of the future of JavaScript right now without having to wait around until all of the browsers fully support ES6.
-
Registering a Custom AngularJS Application with Azure Active Directory
If you’re working with Azure and need to add authentication and identity management into an application look no further than Azure Active Directory (AAD). AAD provides a robust set of services for single sign-on, authentication, multi-factor authentication, and more. Rather than setting up a custom authentication provider for an app, you can leverage existing functionality provided by AAD.
-
Building Applications with AngularJS, Azure Active Directory, and Office 365/SharePoint
One of my favorite features of Single Page Applications (SPAs) is the ability to integrate data from nearly any backend technology and have it display on a variety devices (desktop browser, mobile, tablet, and more). Whether you’re calling a service like Firebase or Azure Mobile Services or hitting a custom REST API, the data that’s returned can be integrated into your SPA regardless of the language, technology, or operating system being used on the server.
-
Getting Started with ES6 – The Next Version of JavaScript
-
My Thoughts on AngularJS 1.3 and 2.0
-
Cancelling Route Navigation in AngularJS
-
What’s “Right” with AngularJS?
There’s been a lot of discussion today on some email groups I’m involved with about a post titled What’s wrong with Angular.js. I’d recommend reading through the post first before continuing but in a nutshell it makes it sound as if AngularJS isn’t a viable framework and should never be used. It also critiques two-way data binding which I found interesting (and misguided). It’s definitely a controversial post with some comments that made me laugh and others that I agreed with completely or in part.
-
Creating Custom AngularJS Directives Part 7 – Creating a Unique Value Directive using $asyncValidators
In a previous post I demonstrated how to build a unique value directive to ensure that an email address isn’t already in use before allowing a user to save a form. With changes in AngularJS 1.3+, several new features are available to clean up the previous version of the directive and make it easier to work with. In this post I’ll update the previous post, walk-through some of the new features in a directive called wcUnique, and show how a few of the new features can be applied. The code shown is part of the Customer Manager Standard sample application that’s available on Github.
-
Learning AngularJS by Example – The Customer Manager Application
-
Dynamically Loading Controllers and Views with AngularJS/$controllerProvider and RequireJS
-
Creating Custom AngularJS Directives Part 4 - Transclusion and Restriction
In Part 3 of this series I introduced how an isolate scope local property defined in a directive can be used to pass parameters to external functions (something that’s a bit tricky at first glance but easy once you know the process). In this post I’ll continue the series on building custom directives and discuss “transclusion” and how it can be used to add flexibility to directives.
-
Creating Custom AngularJS Directives Part 3 - Isolate Scope and Function Parameters
-
The Web Weekly - Edition 9
Edition 9 of my Web Weekly newsletter has been published (sign-up to the right to receive it automatically)! Here’s what’s in this latest edition.
-
The Web Weekly - Edition 8
Edition 8 of my Web Weekly newsletter has been published (sign-up to the right to receive it automatically)! Here’s what’s in this latest edition.
-
Creating Custom AngularJS Directives Part 2 – Isolate Scope
-
Creating Custom AngularJS Directives Part I – The Fundamentals
-
Code and Slides from My AngleBrackets April 2014 Talks in Orlando
The AngleBrackets and DevIntersection conference is all wrapped up! Thanks to everyone that took the time to come to my talks – it’s always fun to meet new people and hear about the apps they’re building. As promised, here’s the code and slides from each presentation.
-
The Web Weekly - Edition 7
Edition 7 of my Web Weekly newsletter has been published (sign-up to the right to receive it automatically)! Here’s what’s in this latest edition.
-
The AngularJS JumpStart Video Training Course Has Been Released!
-
AngularJS JumpStart Video Course Coming Soon!
-
The Web Weekly - Edition 6
Edition 6 of my Web Weekly newsletter has been published (sign-up to the right to receive it automatically)! Here’s what’s in this latest edition.
-
What’s the Role of the Server in Single Page Applications (SPAs)?
I’ve been doing a lot of AngularJS consulting and training lately and have been asked one particular question over and over: “What’s the role of the server in Single Page Applications (SPAs)”? Regardless of what SPA framework you use (AngularJS, Ember, Durandal, etc.) every SPA framework out there relies on some type of service (RESTful or otherwise) to serve and process data. That’s the obvious role that servers can play with SPAs. What’s not quite as obvious are the other roles that the server can play as a SPA interacts with it.
-
Web Weekly Episode 6 Video Highlights
I haven’t had a chance to get the latest issue of the Web Weekly newsletter out yet (sign-up to the right if you’re interested) but the video highlights are ready. In this episode the following topics are covered:
-
The Web Weekly - Edition 5
Edition 5 of the Web Weekly newsletter has been published (sign-up to the right to receive it automatically)! Here’s what’s in this latest edition.
-
Interview with Brad Green from the AngularJS Team
-
Interview with Carl and Richard from DotNetRocks: Getting AngularJS
I had the chance to record a new episode of DotNetRocks with Richard Campbell and Carl Franklin on the campus of UC Irvine in California recently which is always a lot of fun. We sat down and talked about AngularJS, how it fits in with ASP.NET MVC and Web API, a few random things like quadcopters, and more. This episode was recorded in front of a live audience (they were on a DotNetRocks tour across California) with some enthusiastic people in attendance. Check out the episode below (it’ll take you to the DotNetRocks site).
-
AngularJS in 20ish Minutes Talk at ng-conf