如何在angular js MVC中插入,删除,更新 [英] How to insert, delete, update in angular js MVC

查看:102
本文介绍了如何在angular js MVC中插入,删除,更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨大家好



我是Angularjs的初学者我想在MVC中使用Angularjs进行插入,更新,删除。所以请帮帮我如何使用Angularjs与数据库。



谢谢



我的尝试:



我试图将Angularjs用于数据库

解决方案

已经有人提到谢尔盖已经提到它不是一个好方法通过AngularJS与数据库通信,



1. AngularJS是客户端。因此,您必须使数据库也脱机,或者至少需要几个表。

2.虽然JavaScript可用于执行某些操作。但它会让事情变得更加混乱和复杂。



在我看来,我认为要做的只是使用服务器端ASP.NET接口与数据库进行通信。但是,您仍然有可能使用AngularJS与这些ASP.NET接口进行通信。然后是实际执行任务的接口,但是您只能在AngularJS中工作并将数据发送到ASP.NET以存储数据库。



阅读以下主题以获得使用AngularJS执行HTTP请求的概述。



AngularJs


http。 post()不发送数据 - Stack Overflow [ ^ ]

AngularJS Ajax [ ^ ]


AngularJS是一个客户端脚本语言,它可以帮助我们开发动态单页面应用程序。它在html中提供动态数据绑定。它具有单元可测试性,因此这是市场趋势。



现在我们应该了解优势和局限性angularjs

现在你可以查看AngularJS的一些优点。

1.范围

2.控制器

3 。数据绑定

4.服务

5.单元可测试代码

6. D依赖注入

7.单页应用程序开发



开发人员在使用这些技术开发任何应用程序之前应该了解的AngularJS的一些限制。

1.不安全: - 必须进行服务器端身份验证和授权,因为它是用java脚本编写的所有代码。

2.复杂生命周期: - AngularJS应用程序生命周期是非常复杂。

3.不Degradebale:当你在浏览器中关闭javascript时,-AngularJS无效。



这里有用的链接插入,删除,更新angularjs mvc.which将帮助你



AngularJS使用PHP MySQL插入更新删除 [ ^ ]



AngularJS& ndash入门;更新& amp;使用数据库连接删除操作| Rami Vemula [ ^ ]



MVC插入,更新,删除的角度js [ ^ ]



angularjs - angular js和asp.net mvc 4示例应用程序 - Stack Overflow [ ^ ]

Hi Guys

I am beginner in Angularjs I want to use Angularjs in MVC for Insert,Update, Delete.So please help me How to use Angularjs with database.

Thanks

What I have tried:

I have tried to use Angularjs with database

解决方案

As already Sergey has mentioned that it is not a good approach to communicate with database through AngularJS,

1. AngularJS is client-side. So you would have to bring the database to be offline too, or at least a few tables that are required.
2. Although JavaScript can be used to perform certain actions. But it will make things much more confusing and complex.

In my opinion, what I believe to be done is to communicate with the database using the server-side ASP.NET interfaces only. However, there is still a chance that you will be able to communicate with those "ASP.NET interfaces" using AngularJS. It would be then the interfaces that actually perform the task but you will however be working in the AngularJS only and sending the data to the ASP.NET to store the in database.

Read the following threads to get an overview of performing HTTP requests using AngularJS.

AngularJs


http.post() does not send data - Stack Overflow[^]
AngularJS Ajax[^]


AngularJS is a client side scriptng language which can help us to develop dynamic single page application.It provide dynamic data binding in html .It has unit testable so this is trend in market.

Now we should know about advantage and limitation of angularjs
Now you may check some advantages of AngularJS .
1. Scope
2. Controller
3. Databinding
4. Services
5. Unit Testable Code
6. Dependency Injection
7. Single Page application development

Some of limitation of AngularJS which developer should know before developing any application using this technologies.
1. Not Secure :- Server side authentication and authorization is must as it is all code written in java script.
2. Complex Life Cycle : - AngularJS Application life cycle is very complex.
3. Not Degradebale :-AngularJS will not work when you off javascript in browser.

Hi here is useful link about insert,delete,update in angularjs mvc.which will help you

AngularJS Insert Update Delete Using PHP MySQL[^]

Getting Started with AngularJS – Update & Delete Operations with Database Connectivity | Rami Vemula[^]

Angular js with MVC Insert,Update, Delete[^]

angularjs - angular js and asp.net mvc 4 sample application - Stack Overflow[^]


这篇关于如何在angular js MVC中插入,删除,更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆