Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

angular js and asp.net mvc 4 sample application [closed]

I am looking for a angular js and asp.net mvc 4 sample application. I found some very good samples with for angular js but not so much with insert , add, delete to a database. Does anyone have any examples available?

like image 705
user603007 Avatar asked Jan 07 '14 04:01

user603007


People also ask

Can we use AngularJS with ASP.NET MVC?

AngularJS can complement the server-side technology, ASP.NET MVC by simplifying and reducing the operations performed by the server. The JavaScript technology supports template engine, dependency injection and routing engine of its own.

What is ASP.NET MVC 4 Web application?

In this article. ASP.NET MVC 4 is a framework for building scalable, standards-based web applications using well-established design patterns and the power of the ASP.NET and the . NET framework. This new, fourth version of the framework focuses on making mobile web application development easier.

Can we use MVC with angular?

Since then, Angular has received bi-yearly updates and today, the latest version of Angular is Angular 8. The only difference is that Angular is now based on TypeScript, which is a superset of JavaScript, but it still maintains the MVC architecture.

Is MVC or angular better?

It's fairly simple: angular is perfect for web apps and . net mvc is a good choice for any public facing websites (e.g. when SEO is important). It all depends on the needs of what is better. It would be easier to suggest if scope/purpose would be explained.


2 Answers

There are 2-3 project templates for AngularJS and MVC integration

ASP.Net MVC 4 template for AngularJS SPA http://visualstudiogallery.msdn.microsoft.com/cc6c9c5f-2846-4822-899f-a6c295cd4f2b (Created by me :)

and

http://visualstudiogallery.msdn.microsoft.com/5af151b2-9ed2-4809-bfe8-27566bfe7d83

Breeze AngularJS template http://www.asp.net/single-page-application/overview/templates/breezeangular-template

like image 196
Chandermani Avatar answered Sep 27 '22 16:09

Chandermani


Here is another tutorial on how to integrate Angular.js and ASP.NET MVC5 (http://xombe.com/2014/02/17/combine-angular-js-with-asp-net-mvc/). The project files don't have INSERT/ADD/DELETE to a DB, but it demonstrates the core concept of passing a model to Angular.js, updating the model from a Controller, and having Angular.js update the view.

Note: I didn't know about Breeze.js. I'm going to check that out next :-) Looks like it could be a great fit.

like image 22
Capt. Rochefort Avatar answered Sep 27 '22 18:09

Capt. Rochefort