Author Archives: matt

Load AngularJS after Office Initialized

This JavaScript code snippet shows how to load an AngularJS application after Office has been initialized (or some other event has occurred). The key point here is that you need to do a manual bootstrap because the DOMContentLoaded event will … Continue reading

Posted in Uncategorized | 2 Comments

AngularJS Charts with CanvasJS

This example uses CanvasJS to chart Nintendo’s console sales in an AngularJS app. Clicking Bootstrap nav-tabs trigger the Angular controller to change the chart type (bar, column, pie chart etc). The file structure: In index.html setup chartApp and add all … Continue reading

Posted in Uncategorized | 1 Comment

Bootstrap 3 Responsive Breakpoint Values

The breakpoint values Bootstrap uses for media queries are pretty handy. The code below comes from the Bootstrap 3 Sass download in _variables.scss: Similarly the code below comes from the Bootstrap 3 Less download in _variables.less:

Posted in Uncategorized | 1 Comment

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 | 18 Comments