Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I am currently at the beginning process of starting a new application and am quite new to MVC and Angular. So far i have created a custom authorize attribute using asp.net MVC, this enables me to use the [Authorize] tag. Is it possible to use with an AngularJS front-end?

Any resources that will point me in the right directions would be appreciated.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

AngularJs is really good for single-page-applicaitons (SPA). So just separate your front-end and back-end layers. Use Angular to implement all the views and front-end stuff. Use ASP.NET WebAPI to expose REST API for front-end (and maybe mobile) app.


A few useful links:

Angular Routing module

ASP.NET WebAPI Bearer token authorization with AngularJs

Routing in SPA with AngularJs

share|improve this answer
    
Thanks il take a look now. –  Adam Wilson Mar 17 at 12:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.