Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

138
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda