Angular and SharePoint Search – a followup

Previously I’ve posted about issues with SharePoint (Search) and Angular. Finally – almost a month later, I’ve found a proper solution to the problem!

The solution makes angular stay away from your URL completely, so don’t do this if you’re angular controllers are using URL for state.

What you need to is add a .config to your angular app (take a look at how that’s done here). You’ll need to override url() and onUrlChange() of $browser.

Take a look at the snippet here.
Enjoy Angular and SharePoint together – in harmony!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s