After following these steps you'll want to create an additional ASP.NET Web Application, this time for your Umbraco project, and install Umbraco using NuGet.
Thank you for your reply. So I've to create two projects under the solution. One for Umbraco and one for Angularjs? Is't possible to use the angularjs umbraco library under AngularJs2?
That's correct, so the Angular 2 project is your front-end application and the Umbraco project is your back-end.
The Umbraco AngularJS library is only intended for use in the backoffice. What is it you're trying to do that you would need to use it in your front-end app?
I know that I've to use web api to send data from Umbraco Cms to angular frontend. The only problem is for private area to authenticate the user and so but I know that I need to use Umbraco Identity plus OAuth and then decorate the api method with [authorized]. I don't know how to without OAuth. Do you know?
I have no experience with Umbraco Identity. However, it should be possible to do what you're asking with Umbraco's standard membership provider. Is ASP.NET Identity a hard requirement for your project?
Hi, Identity it's not a must, but I've already integrated with Oauth server to generate token and so. Else I can use JWT.
How to create OAuth server without identity?
Angular2 Typescript and Umbraco: How to configure a Visual Studio 2015 Solution?
Hi,
I wish to create the frontend with AngularJS 2 + Typescript and use Umbraco as backend where I put data. In the frontend there are some private area.
So, How to configure a Visual Studio 2015 solution?
Thanks.
Hi Biagio,
The Angular 2 documentation has some instructions for setting up Visual Studio 2015: https://angular.io/docs/ts/latest/cookbook/visual-studio-2015.html
After following these steps you'll want to create an additional ASP.NET Web Application, this time for your Umbraco project, and install Umbraco using NuGet.
That is how I would do it anyway.
Steven
Thank you for your reply. So I've to create two projects under the solution. One for Umbraco and one for Angularjs? Is't possible to use the angularjs umbraco library under AngularJs2?
Hi Biagio,
That's correct, so the Angular 2 project is your front-end application and the Umbraco project is your back-end.
The Umbraco AngularJS library is only intended for use in the backoffice. What is it you're trying to do that you would need to use it in your front-end app?
Steven.
I know that I've to use web api to send data from Umbraco Cms to angular frontend. The only problem is for private area to authenticate the user and so but I know that I need to use Umbraco Identity plus OAuth and then decorate the api method with [authorized]. I don't know how to without OAuth. Do you know?
I have no experience with Umbraco Identity. However, it should be possible to do what you're asking with Umbraco's standard membership provider. Is ASP.NET Identity a hard requirement for your project?
Hi, Identity it's not a must, but I've already integrated with Oauth server to generate token and so. Else I can use JWT. How to create OAuth server without identity?
is working on a reply...