Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialjlampstack
23,932 PointsCan AngularJS be used solely to upload data to a database?
Can we use Angular alone to upload content to a database such as phpMyAdmin? If not, which language is best recommended to learn? I already know PHP, but am not sure if we can use them together, or if it would be considered good practice?
1 Answer
James Anwyl
Full Stack JavaScript Techdegree Graduate 49,960 PointsHi Jay,
Not on its own. AngularJS is a frontend framework, you would need to use a server-side language for the actual database interaction (as well a database language like SQL).
There are many ways to achieve it, one way would be to use a combination of Angular and PHP, another would be to use Node.JS and Sequelize.
See here for an example of using Angular + PHP together.
Hope this helps :)
jlampstack
23,932 Pointsjlampstack
23,932 PointsThank you James Anwyl