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 MPI读取tif文件无法正常给各进程分配路径
  • ¥15 如何用MATLAB实现以下三个公式(有相互嵌套)
  • ¥30 关于#算法#的问题:运用EViews第九版本进行一系列计量经济学的时间数列数据回归分析预测问题 求各位帮我解答一下
  • ¥15 setInterval 页面闪烁,怎么解决
  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
  • ¥15 如何用Python爬取各高校教师公开的教育和工作经历
  • ¥15 TLE9879QXA40 电机驱动
  • ¥20 对于工程问题的非线性数学模型进行线性化