Category Archives: Uncategorized

AngularJS Twitter Authentication with OAuth.io

This rough example uses OAuth.io to connect an AngularJS app to Twitter’s OAuth API and display a user’s recent timeline. To get started create a new app on OAuth.io and add the Twitter provider (read this blog post for a … Continue reading

Posted in Uncategorized | 17 Comments

AngularJS Contact Form with Bootstrap and PHPMailer

The form is styled with Bootstrap. Validation and sending the form data to the server is done with AngularJS. More validation and processing the email is done with PHPMailer on the server. In index.html setup the form and add all … Continue reading

Posted in Uncategorized | 23 Comments

AngularJS Directive HTML5 Video with Flash Fallback

Implementing the HTML5 Video with Flash Fallback example as an AngularJS Directive. In index.html apply the custom directive (html5-fallback-video) as an attribute on an element: The directive itself is defined in app.js. Modernizr determines if the browser supports HTML5 video … Continue reading

Posted in Uncategorized | 1 Comment

AngularJS Example: $rootScope vs $scope

In this example a color variable is set on the $rootScope at the beginning, inside the run block. There is only one $rootScope, so this is kind of like setting a global variable. Later inside GroverController a color variable is … Continue reading

Posted in Uncategorized | 3 Comments