Cameron Spear
  • Blog
  • Contact

angular

A collection of 4 posts

angular

Server Grab Pattern

Terrible name, I know. But I've been digging this pattern for succinctly and simultaneously getting data from the server and putting it on the $scope. I present the Server Grab Pattern: // inside a

  • Cameron Spear
    Cameron Spear
1 min read
angular

How cool are $formatters and $parsers?

Angular has this concept in directives called $parsers and $formatters. It's mechanism to be able to format data from model to view so that it's presented in a more human-friendly way to the

  • Cameron Spear
    Cameron Spear
1 min read
ajax

Exactly What IS JSONP?

JSONP, which stands for "JSON with Padding" (and JSON stands for JavaScript Object Notation), is a way to get data from another domain that bypasses CORS (Cross Origin Resource Sharing) rules.

  • Cameron Spear
    Cameron Spear
3 min read
javascript

Hash Sync (Angular Directive)

I may have cheated a bit this week. The contents of this article just about mirror the README from this plugin's repo. I wanted to share it nonetheless, and I can't think of

  • Cameron Spear
    Cameron Spear
2 min read
Cameron Spear © 2025
Latest Posts Ghost