SharePoint and Angular - Together at Last

AngularJS and SharePoint – Like Peanut Butter and Chocolate

facebooktwitterlinkedinmailby feather

sharepointWithout further ado, I’ll get my first post rolling.

At SPC14 this year (which one of my co-workers was lucky enough to attend), Scott Hillier presented pieces on using 3rd-party JavaScript libraries and WebAPI2, and Jeremy Thake presented one on AngularJS and SharePoint. Considering that SharePoint 2013 has robust REST interfaces (not that 2010 didn’t), I felt it was time to get my feet wet and try to replace our old Poll web part with a SharePoint App using REST and AngularJS.

angularThe code presented in this series will not be the exact code that was used (so as not to violate my legal agreements with my employer), but it does basically the same thing in basically the same way. I’ll present my thinking along with the code so you can follow where I’m going (and possibly laugh at how unfamiliar I am with AngularJS).

As an aside, I’m not usually a huge fan of using Google tools, of which AngularJS is one.  I prefer my open-source software to actually BE open-source, as opposed to the (granted, free and open) IP of a specific company. However, it IS a pretty useful library, as we’ll soon see.

So what IS it? AngularJS is a client-side library that basically allows you to implement an MVC (Model-View-Controller) architecture on your web page without any back-end code (although you do need some data connections). The tutorials presented on the site do a fairly good job of introducing one to the basics – however, like most Google documentation, they’re sadly lacking when it comes to details. Anyway. In this series I’ll focus primarily on using AngularJS to provide the Controller and View segments, and the SharePoint REST API to provide the vast majority of the Model.

More to come soon, stay tuned.

facebooktwitterlinkedinby feather

Leave a Reply

Your email address will not be published. Required fields are marked *