Angular 4 and Umbraco Working Together - umbraco

I've heard that Umbraco is written in Angular 1. Is it possible to run a web site written in Angular 4 on Umbraco?
Do they play well together?

The backend of Umbraco is implemented using AngularJS (v1). The frontend of Umbraco uses Razor to output serverside data or you can implement your own WebAPI controllers on top of Umbraco to output data to a webapplication implemented by the framework of your preference.
So yes, if you want to use it for the website itself, it fits perfectly fine. You'll have to implement your own Web API Controllers
If you want to use Angular to extend the Umbraco backoffice, you'll want to use AngularJS (v1)

Related

Need Clarity on Chartjs - Asp.NetMVC or Vue-ChartJS -Asp.Net MVC

I am new in Coding world. I have a assignment where we are using Asp.net MVC along with Chartjs and Vuejs.
I am currently looking at examples using chartjs in ASP.Net MVC and making mockup.
How different it would be if I incorporate Vue.js later...will it would be different syntax altogether.
Need help in understanding the difference.
Thanks.
Conceptual understanding needed.
Your question is very open but I'll try giving you the concept:
I've not worked with ASP.NET MVC but I assume it could work like any other backend framework and Vue is your frontend.
You can move data back and forth from your backend(ASP.net which interfaces with your database) using a simple api which vue can utilize/consume.
Try setting up your ASP.NET with Vue first. You can see this or any other example from online.
Add chartjs to your vue frontend consuming the data from your backend.

MVC 4 website compatibile with Phonegap

I'm developing an MVC website for mobile. The website should be compatible with Phonegap in the future, so I've done most of the client side logic using Web Api controllers and Ajax calls and my views are not linked to any Models. All my .cshtml files are now pure html/javascript codes.
But can I use MVC controllers to return empty views alone?
Will this work when I'm converting the code to phonegap?
because controllers usually return .cshtml files as views , but I will convert all cshtml to pure html in the future.
There is nothing to do with MVC in phonegap, phonegap uses Html/CSS for designing (front end) and JavaScript/JQuery/Ajax for logic (back-end).
Yes, you can return empty view but what about query and database related stuff, you have to use controller or model. This is all server-side stuff.
So answer is totally dependent on how is your Mobile App, for database connection you have to pass controller method's url in ajax call. For now, go ahead...

using ASP.NET MVC and EXT JS together

I'd like to use for my next project Ext js and ASP.NET MVC.
I'm wondering what would be the best way of using this two framework together. So far I did some project using ASP.NET MVC, where every action method returned a view and reloaded the page. The Ext js mvc application uses a single page approach.
As I'm pretty new to ext js so I'm wondering if someone could share some experiences of building real world application using this two frameworks.
You can use extjs as you think is better for you. You can use its components as simple widgets or create a full javascript (extjs) client. However, which are the real requirements? a single page client or a traditional client?
In our current project we started using ASP.Net MVC Framework with extjs widgets, it was ok for a while but the customer wanted more and more sophisticated UI and a better user experince (among other thing) then, we changed the app, we left MVC models and controllers (views were removed) and we created a full javascript client with extjs 4.1.
After that we realized we were using an ASP M_C framework (with no views) and that was a nonsense so, we took the ASP MVC project away and replaced it by a WCF Rest service (it also could be done with an ASP.Net Web Api).
We feel proud of our decision and the resulting design. If you can, if you know extjs (learning it is rather hard) and javascript and, if you have support to your decision then, keep your application splitted in two:
a server-side service/api and,
a full javascript application.
Good luck!
I'm not sure I'd agree with the answer by #lontivero, I'm currently working on a project using ASP.NET MVC as the backend and ExtJS as the front.
You do, as pointed out, loose the V from the ASP.NET MVC stack and you end up needing to duplicate you C# view models in you ExtJS Models on the client side but I've found using MVC as a backend (effectively as a rest based collection of Json end points) absolutely fine.
You can utilise the model binding, model validation in MVC whilst leveraging the full client side js app in Ext.
I'm curious as to the points you didn't get on with using this structure (I'm not saying it's perfect, but it does seem to work)
We used Ext.NET (versions 0.x-1.x) in our previous projects. Even after a comprehensive effort to upgrade our projects to the (now current) version, we had to drop Ext.Net 2.x out.
If it fits you, it can help.
The main problems with Ext.Net were (several) incompatibilities with ASP.NET and a lack of trust. They used to keep their schedule, it's far from it for last 2 years or so. And they are behind ExtJS.

Creating MVC Application That Can Easily Integrate Into Existing Applications

I have created a custom MVC Forum application. But I'm starting to think that although it works great as is, I'm going to need to get it to work within other MVC apps (In fact I have actually been asked that already).
What is the best way with an MVC app to structure/develop to make it as easy as possible to integrate into an existing MVC application?
Areas? Develop within a sub folder from the start? Or is it just you have to work through and merge configs/controller clashes if necessary.
No need to Config or ... . you only need to create ability in your Logon Model and it's Controllers. A complete example is in Asp.net MVC 4 which Microsoft has added more libraries for authenticate from other sites/profiles. Also the model has changed a few in properties. see this technology or download MVC 4 framework to learn it. it's easy.

Can ASP.net MVC 2 Project and CMS can be Combined together

I have developed project using Asp.net MVC 2.Now the content part of My site i don't want to build a Cms for that So my question is can i used any existing CMS developed in MVC2 so that The content part will be taken care of by the CMS
and Application part by developed project by me.
I have used CMS like Silverstripe which is quite easy which also provides ORM to develop application on their Sapphire engine which but developed in PHP.
If it is Combined then when writing Code i will write like this
[This just Sample Imaginary Code.I just want CMS to be easy]
<logo><Pick_up_from_CMS ID=logo></logo>
<menu><Pick_up_from_CMS ID=menu></menu>
<header><Pick_up_from_CMS ID=header></header>
<body>
<Pick_up_from_CMS ID=body>
<MY_Application_Logic ID=Logic1><!--This May be my Registration or Search form> -->
</body>
<footer><Pick_up_from_CMS ID=footer></footer>
It is possible, yes.
It won't be easy though. A lot of the Content Management Systems out there rely on their own set of ASP.NET WebForms user controls to provide content functionality.
If you're going to integrate a ASP.NET WebForms CMS with ASP.NET MVC 2, you're going to have to do your integration at the API level (assuming the CMS has an API).
That will allow you to retreive and insert your content in your controller without having to use any WebForms User Controls.

Resources