Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

136
Views
Server Side of Partial Pages in AngularJS

I'm trying to understand how to use $routeprovider in AngularJS. I'm trying to follow this tutorial to pull in partial pages to my main AngularJS app. I pasted the code into the public folder of a new app and am trying to make it work.
However, I'm missing what is supposed to happen on the server side.
When I open the index.html page all is the actual text without any of the variable values filled like they should be. Webpage that I see When I try to navigate to one of the book or chapter links I receive the following error: Cannot GET /Book/Moby/ch/1.
However, adding a route inside my server side doesn't help much either: express route
I then recieve the html of the chapter.html file, which isn't what I want. enter image description here
I've also tried opening a new project, only pasting the few files that are given, and opening the index.html in the browser. Again, I see only the html itself without the variables actually equaling what they're supposed to.
So, while I understand I'm missing something, probably in the server side, I'm not sure what that is.
I'm new to AngularJS, though I've used express before, and would appreciate any help on how to correctly use $routeProvider, and what I should do in the both client and the server side.
I've tried to google this, and while I've found many links on how to use ng-view, routeProvider and AngularJS none of them mention the server side. I understand I'm meant to let AngularJS handle routing. However I'm having a bit of trouble with understand how it goes together. How do I let AngularJS handle some of the requests while the rest go to the server side to be handled there?
So, bottom line, what am I supposed to do to get this run correctly?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!