douzi9744 2015-05-25 02:12
浏览 57
已采纳

将AngularJs连接到本地服务器php MySQL

Total beginner question (apologize in advance for the stupidity :( )

I am trying to learn how to develop apps using ionic framework/angular. I created a simple news feed (UI part of it anyway).

I then installed MySQL, PHP and Apache on my Mac (MAMP). I have created some tables and inserted some dummy data.

Now, I am completely lost on what kind of routine/procedure to write on my server, and what code to write in my Angular service so i can show the dummy data in my app?

Basically, how do these two discreet "things" on my system know how to connect and exchange data?

I googled it for few days, but most tutorials don't seem to address this basic question.

I don't actually expect somebody to take me through the steps, but if you can point me to some tutorials/resources on this, it would be much appreciated.

Thanks in advance.

  • 写回答

2条回答 默认 最新

  • doudou6050 2015-05-25 05:42
    关注

    You will have to think in terms of web/RESTful services to expose data to your Angular app. I can point you to a couple of introductory tutorials on the MEAN stack (MongoDB, Express, Angular, Node), but you'll get the idea:

    Learn to Build Modern Web Apps with MEAN

    Mastering MEAN: Introducing the MEAN stack

    Several references to online resources, by ericdouglas

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 宇视监控服务器无法登录
  • ¥15 PADS Logic 原理图
  • ¥15 PADS Logic 图标
  • ¥15 电脑和power bi环境都是英文如何将日期层次结构转换成英文
  • ¥15 DruidDataSource一直closing
  • ¥20 气象站点数据求取中~
  • ¥15 如何获取APP内弹出的网址链接
  • ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了
  • ¥50 STM32单片机传感器读取错误
  • ¥50 power BI 从Mysql服务器导入数据,但连接进去后显示表无数据