How to host an angularjs app in domain

前端 未结 4 1631
无人及你
无人及你 2021-01-31 02:07

Currently Learning to create a simple AngularJs App.

This is my first MVC app, so my questions may be very basic.

  1. I understand that we require nodejs t

4条回答
  •  终归单人心
    2021-01-31 02:25

    NodeJS isn't a requirement for AngularJS. Angular is a client-side library.

    Angular's team uses NodeJS to help you do things like test your javascript, or pull down files and set up everything you need to run a little web server.

    So all you really need for an "AngularJS app" is 2 files: angular.js and some HTML file.

    
    
    
    
    
       Now you're cooking with {{what}}!
    
    
    

    Beyond that, any web server that will host static files will do for the most part.

提交回复
热议问题