如何在django 1.8中使用角度2?

时间:2022-10-16 19:38:27

I am novice to angular 2 . i am trying to use angular 2 framework in django 1.8. Is there any way we can use angular 2 in django ? i am looking for a simple example which will help me to build application. can anyone tell me How to do it? Little help or any link I will appreciate it.

我是角2的新手。我想在django 1.8中使用angular 2框架。我们有什么方法可以在django中使用角度2吗?我正在寻找一个简单的例子,它将帮助我构建应用程序。任何人都可以告诉我怎么做?很少的帮助或任何链接我会很感激。

1 个解决方案

#1


0  

Angular is a framework to create client-side applications, while Django is a framework for server-side applications. I don't really see any use case for using Angular inside Django. Perhaps you're looking for a way to create a bridge between client and backend.

Angular是一个用于创建客户端应用程序的框架,而Django是用于服务器端应用程序的框架。我真的没有看到在Django中使用Angular的任何用例。也许您正在寻找一种在客户端和后端之间建立桥梁的方法。

You could create an API with Django and create an client-side interface with Angular 2, if that makes any sense.

您可以使用Django创建API并使用Angular 2创建客户端接口,如果这有意义的话。

#1


0  

Angular is a framework to create client-side applications, while Django is a framework for server-side applications. I don't really see any use case for using Angular inside Django. Perhaps you're looking for a way to create a bridge between client and backend.

Angular是一个用于创建客户端应用程序的框架,而Django是用于服务器端应用程序的框架。我真的没有看到在Django中使用Angular的任何用例。也许您正在寻找一种在客户端和后端之间建立桥梁的方法。

You could create an API with Django and create an client-side interface with Angular 2, if that makes any sense.

您可以使用Django创建API并使用Angular 2创建客户端接口,如果这有意义的话。