Angular Js如何运作?我可以在没有服务器端语言的情况下执行Angular Js吗?如何使用Angular Js进行服务器端? [英] How Angular Js Works? Can I Do Angular Js Without Server Side Language ? How Can I Do Server Side Using Angular Js?

查看:81
本文介绍了Angular Js如何运作?我可以在没有服务器端语言的情况下执行Angular Js吗?如何使用Angular Js进行服务器端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

棱角分距js如何工作?我可以做没有服务器端语言的角度js吗?如何使用角度js进行服务器端操作?







例如我有一个应用程序使用一些函数来保存使用c#编写的数据。那么如何在这种情况下使用角度j来保存数据?



使用角度js也是安全的吗?每个人都可以看到我们的角度js代码对吗?它是安全的吗?



我可以使用HTML5和角度js创建应用程序吗?没有任何服务器端?如果是,我怎么能将数据添加到数据库?

How angular js works?? Can i do angular js without server side language ? How can i do server side actions using angular js?



For example i have an application which uses some functions to save data which is written in using c#. So how can i use angular js in this case to save data?

Also is it secure to use angular js? Everyone can see our angular js code right? So is it secure ?

Can i create applications using only HTML5 and angular js ? without any server side? if yes how can i do add\update data to database?

推荐答案

Angular JS被设计用作MVC等平台的前端工具,NodeJS。前端意味着您可以进行客户端操作,例如数据输入,验证,操作,这是一种称为双向绑定的功能。

您可以在MVC框架中使用Angular JS,使用Web API或WCF服务进行服务器端处理。在后端使用数据库的Web API / Web服务,您可以编写插入,更新,删除等操作,从angular js可以编写服务/控制器来调用api / web服务来获取数据和发送数据。你可以在视图中使用简单的html或HTML 5。

使用web api / web服务时的安全问题是通过基于令牌的身份验证(OAuth)完成的,其中数据库操作是基于在安全令牌上。因此,角度js在这种意义上是安全的。



如果您想将Node JS与nosql数据库(如mongodb)一起使用,您可以选择。 MongoDB可以使用像c#这样的语言。



希望这对你有帮助。
Angular JS has been designed to be used as front-end tools for the platforms such as MVC, NodeJS. What does front-end means you can do client-side operations such data input, validation, manipulations which is the feature called 2-way binding.
You can use Angular JS in MVC framework, with Web API or WCF services for the server side processing. Web API/web service with database at the back-end you can write the operations such as Insert, update, delete etc. and from angular js you can write the services/controllers to call the api/web services to get the data and to send the data. You can use simple html or HTML 5 in the view will be fine.
The security issue when you use web api/web services is done through token based authentication (OAuth) where the database actions are performed based on security token. As a result angular js is secure in that sense.

If you like to use Node JS with nosql database such as mongodb you have the option for that. MongoDB can be used language like c#.

Hope this will help you.


这篇关于Angular Js如何运作?我可以在没有服务器端语言的情况下执行Angular Js吗?如何使用Angular Js进行服务器端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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