Questions tagged as 'ngroute'

1
answer

Routes Angular-JS

Good evening! I'm new to single page application technology, and I'm finding it difficult to render my pages in Angular one, I have a button that clicks, shoots a route, it tries to load, but it does not appear on the page, I've already research...
asked by 28.03.2017 / 04:18
2
answers

Angle with ngRouter does not work when I type in browse

I need to type in browse ...    domain.com.br/details1234 ... and I need the controller to take this number 1234 and perform its task. I tried everything without success. Home NOTE: If I create an anchor within the page by hrefing the rou...
asked by 04.01.2017 / 22:40
1
answer

ngRoute not working correctly

I'm trying to create routes with AngularJS to make a Single Application. I can load the main page that would be / , but others that contain parameters can not. I have the URL link and I need to load the view views/routes/visual...
asked by 14.01.2017 / 00:46
1
answer

Route to Home Page Angular

I have the following structure in my module link When I call the URL link , it includes the home.html view, so far so good. The problem is that when it's in that URL and I give an enter, it gives me a message that the page was not found...
asked by 05.04.2016 / 22:24
0
answers

ngRoute otherwise you are not redirecting

Hello, I'm trying to redirect the page when the url invalidates, but I'm not getting it, I've looked in other forums and I've researched but I can not find what it can be ... Follow the source: raiz_app = $("#raiz_app").val(); $routeProvider.w...
asked by 10.04.2018 / 21:46
2
answers

Routing problem after final build in angular 2

After generating a final build in angular 2 ng build --prod I was able to put it on any server (nginx / tomcat / others ...) normally, the problem happens that the routing does not work using the <router-outlet> tag and the a...
asked by 13.03.2017 / 19:07
1
answer

Problems with angular and http-server routes

I put the $ locationProvider.html5Mode (true); on my routes to take that #! URL. I'm not sure if this is a good way to do this, but I do not know how to do this. This happened to happen when I started using $ locationProvider.html5Mode. As a...
asked by 07.03.2017 / 18:14
2
answers

Angular $ routeProvider using div ng-view / div

Galera, I'm following the ng-book of angular book, and to make a SPA, I'm using the following structure: - app - controller controller.js - js main.js - node_modules (com os arquivos de jquery, bootstrap e angular)...
asked by 03.08.2016 / 03:48
0
answers

Should I use create a service of type "Provider" only to verify if the user is logged in?

I have an application that makes use of the ngRoute module. When the url of a restricted page is accessed, I check if the user is logged in and then allow access. But I was replicating this routine in various parts of my code. So I tho...
asked by 10.08.2016 / 21:26
0
answers

Register controller angularjs

I have this app and this html: link And I also have this controller and this html: link When I put it to run, it points me to an error that the controller was not found. However, if I take the controller out of the view and put i...
asked by 06.04.2016 / 16:38