The ngRoute module provides routing and deeplinking services and directives for angular apps.
0
votes
0answers
9 views
ngRoute not working: [$compile:tpload]
Im new to angularjs so its hard for me to figure this thing out. Im getting error of [$compile:tpload]. What could be a problem here?
HTML:
<body ng-app="App">
<div ng-view>
...
</...
0
votes
1answer
23 views
AngularJS Routes Created from json data all same view template
I need to make a post-type in my simple angular app... I have a json file with contacts
{
"contacts": [
{
"name": "Alf",
"tel": [
{
"home": "...
-1
votes
3answers
36 views
ngRoute not working in angularJS
I have the following code
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>Index</title>
<link href="~/...
1
vote
0answers
27 views
How to refresh or reload assets after route in angularjs?
I have a website with animations effects. When I load the page for the first time, everything works. But, if I navigate by routes, "/", "/about", this animations dosnt start. Here an example with ...
0
votes
0answers
26 views
Issue with $scope when used with ng-route
I'm trying to create a login page.When the user login, i want to show some contents like my-profile,settings,help on the navbar.
Currently i'm using ng-show and ng-route.I'm facing an issue with the $...
9
votes
3answers
11k views
How to change page title in Angular using $routeProvider
I found several similar questions, however none of the answers helped. They all seem to involve some type of $location dependencies that I'm unable to get injected right.
My code below:
(function() {...
1
vote
0answers
41 views
Node.JS and AngularJS Routes with API routes
So I am using Node.JS with Express as my backend and my servlet for API. I'm using AngularJS as my front end.
Through many Google searches, I finally solved my problem of using ngRoute with ...
0
votes
0answers
63 views
Angular (1.6.x) routing into chrome to address location
I'm trying to do a simple work in partial view by ng-view.It has four anchor link like sweden, denmark, norway...
If I click one of them then it will show partial page on the index page.But it doesn't ...
0
votes
1answer
38 views
asp .net navigating between different pages using angularJS in localhost
I am trying to learn more about angularJS and I came across problem with routing.
I am developing a ASP .NET project in Visaul Studio. I am running the project in localhost on Google Chrome.
Here is ...
2
votes
1answer
65 views
Angular routes contain #! in the url instead of # [duplicate]
Recently I have noticed that when using ngRoute module in an AngularJS app, the route contains #! in the URL, which was earlier just the #.
For example, www.webiste.com/#/login becomes www.website....
0
votes
0answers
37 views
Angular ng-route: show a page into a page when I redirect to a #/page “[$compile:tpload] Failed to load template:”
I'm using ng-route to show a page called "london.htm" (in the same directory of my principal page) into this principal page, such this example:
<!DOCTYPE html>
<html>
<script src=...
0
votes
1answer
79 views
my angular routes have a '#%2F' before the actual URL I have defined in the app.js
I am setting up my angular routes in the app.js as so:
.config(function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/main.html',
controller: '...
0
votes
1answer
27 views
ng-view does not seem to be working. Nothing shows up
For some reason my ng-view has decided not to work. Its been a bit since I've worked with angular so maybe I'm missing something. On the view home.html all it has is text hello in an h1 tag but its ...
0
votes
0answers
22 views
ng-view doesn't work correctly
I want to implement ngRoute in my angularjs project. But <ng-view></ng-view> doesn't show anything. I read all other posts about this problem, but my problem is not resolved.
I define $...
0
votes
1answer
76 views
In the config function inside state how to use factory /service for the custom data properties in angular js
In the below example I have to use service inside roles how to use service and return array value from there
Example :
.config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $...
0
votes
1answer
23 views
Angularjs Routeprovider in MODx subfolder
I've got angularjs app running on MODx website. There is some page with URL like
localhost/www.mysite.com/angularapp/
which contains the app.
URLs inside app look like
localhost/www.mysite.com/...
1
vote
1answer
17 views
Inhibit google map reload on Angularjs route change
I have a google map as the background for my site. It is used on separate routes to add a visual feature to data shown in the various routes. I would like to make sure this does not get reloaded on ...
0
votes
0answers
20 views
routeChangeStart resume navigation with equivalent to $state.go
I have to make an authorization validation during event routeChangeStart in an angular app, and the method to do it is a promise-based one. So I tried using event.preventDefault(), but I don't know a ...
2
votes
2answers
66 views
Angular Route for sub folder gives error
I have written 2 ng-app in one project, one is user and the other admin.
To remove the # from the url I had used the below code in both app.config function
$locationProvider.html5Mode(true);
and in ...
0
votes
0answers
18 views
How to avoid execution of resource if is not being called by localhost?
Is it possible to prevent anyone from entering a resource in an specific directory? May be with .htaccess or changed its group or permissions may be?
For example, the resource is in:
/myRoute/to/...
1
vote
0answers
26 views
ng-click and ngRouting on mobile devices
I am completely new to Angularjs and haven’t been doing any code for ages. I started setting up my website again with Angularjs. I have a main page and an about page, to which the user gets via ...
0
votes
0answers
67 views
AngularJS routing not matching route sometimes
I'm experiencing a weird behaviour with an app I'm working on
The app is in PHP and use UI-Router for routing purpose only, it works rather well actually, but since yesterday we are experiencing a ...
-1
votes
1answer
36 views
In angular program $location giving error
I have a simple program where I am trying to redirect use using a check on username and password. But when condition holds true I am not redirected but instead given an error. Can someone help me out? ...
0
votes
1answer
41 views
Angularjs - removing table row (using ngRoute, factory)
I have three html files and trying to insert, remove datas to a table. I have succeeded to insert datas to table, but cannot remove those. I'm thinking that I'm not returning the right value or maybe ...
2
votes
1answer
30 views
After loading a new route old instances of controller is still running
I have a route which is loading a page based on the parameters:
.when('/:num/:den', {
templateUrl : 'app/views/templates/home.html',
controller :"ProductContoller",
controllerAs: "product",
...
0
votes
1answer
89 views
AngularJS: Component controller not loaded when routing with ngRoute
I am an AngularJS beginner. I have the following code:
A component defined by the following js file:
angular.module('EasyDocsUBBApp')
.component('loginTag', {
templateUrl: 'login-tag/...
0
votes
1answer
51 views
By using ngRoute, ng-view not working properly
I want to implement ngRoute in my angularjs project. But<ng-view></ng-view> doesn't show anything. I read all other posts about this problem, but my problem is not resolved.
I define $...
0
votes
0answers
36 views
angularjs route go back to previous filtered state instead of original state
I have a table, display a list of items, using dirPagination for filtering data and pagination. Code like this
<tr dir-paginate="result in results | filter:query | itemsPerPage: 10">
and the ...
0
votes
0answers
49 views
AngularJS template does not load new script file/ new html files when firebase serving
I'm trying shift between pages on one section of the website when you click on a link, however for some reason,when ever I locally host the website up through firebase, and check on google console an ...
0
votes
1answer
50 views
How to pass multiple parameters to url using angular js?
I am a newbie to angular js .
Here in my project i want to pass multiple parameters in anchor tag .
So that i will get multiple params in address bar too.
I have tried this one but its not working at ...
0
votes
1answer
15 views
Can we define more then one controller for a template in ng-route config function?. if yes then how?
guys in the below code sample I used three controllers in the onlinetest.html template, and here I define only one controller which work fine some instance but view page contains 3 controllers. code ...
1
vote
1answer
35 views
How to group routes using angular ui-router?
How to group routes in ui-router?
For example, i have following routes in my app
#/products/p1
#/products/p2
#/products/p3
One way of defining states will be,
.state(‘products.p1’)
.state(‘...
0
votes
2answers
52 views
Angular js - Is it possible to route using HTML tag <button>?
Ok guys i know how to do Angular ngRoute using <a> tag, now i would like to know if its also possible for me to use <button> tag to navigate between ..
lets say i have the following code....
0
votes
0answers
19 views
angularJS: routeChangeStart next does not contain $$route when visiting an url
I have an angular app where i am using ngRoute for routing
$routeProvider
.when('/dashboard', {
// controller: 'AppCtrl',
templateUrl: '/templates/...
3
votes
3answers
72 views
how to keep header of content div fixed?
I have a web page built in angularjs .
<html>
<head></head>
<body ng-app="app1" ng-controller = "ctrl1">
<header></header>
<div ng-view></data>
<...
0
votes
1answer
32 views
Angular Routing with ASP MVC
I have an MVC test project I am working on to see if I can get angular routing to work with it.
What I mean by work with it is that I want to be able to have a landing page for my app: www.testapp....
0
votes
1answer
27 views
couldn't figure out the issue with angular routing / ng-repeat.
The aboutus.html page is displayed correctly, except the content in the ng-repeat within media-list in aboutus.html. there are no errors displayed in the console. I have not included the entire code (...
3
votes
0answers
46 views
route pattern understanding with the help of ngRoute
You may call it reinventing the wheel, however, I'd like a senior architect level to answer this, especially who knows the underpinnings of angular js especially or can do himself in plain vanilla ...
0
votes
1answer
2k views
how to pass query parameter in resolve method
Here is my js code
var MYApp = angular.module('myApp', ['ngRoute', 'myAppServices', 'ngSanitize'])
.config(myRouter);
angular.module('myAppServices', ['ngResource'])
.factory('GridsAPI', ...
0
votes
1answer
85 views
Angular template view with utf-8 chars doesn't work
I try to use "ngroute" to load html templates.
Everything works fine, but when I try to show words in Hebrew in the "ng-view", I get only question marks instead of the Hebrew chars (???????????).
in ...
0
votes
0answers
25 views
AngularJs ng-route with different domains without CORS issues
Can I use AngularJs ng-route to service html content from different sites/domains?
lets say I want to build header menu and each item in the menu will load different contents. for example :
item 1 -...
0
votes
3answers
464 views
Angular ngRoute can't load template: Error [$compile:tpload]
I tried some simple Angular Routing, but I cant specify what's the error. Chrome just tells me that Angular can't compile the Template.
In the following Link you can see my directory structure.
...
0
votes
0answers
24 views
ng-route : How to render layouts by path?
I'm sorry not good at English well, please understand the subject is not good.
I am creating a SPA with angular.js.
I want to change or append view by path using ng-route.
For example,
<div id=...
0
votes
1answer
1k views
How to use ng-view in jsp pages for spring
Trying to implement a user authentication with simple http session using angular and spring.
In index.jsp(my home page), a ng-view is being used.
But since the $routeProvider is not able to find the ...
1
vote
2answers
52 views
Multiple controllers working within ngRoute example
I have a small ngRoute example I am trying that to use multiple applications and controllers with. The first app/controller is for the main page, while the second set of app/controller is for the ...
0
votes
0answers
57 views
routeprovider controller how it works
I am following the "Unraveling AngularJS 1.5" book to learn Angular 1.5, and I am a little confused on chapter 03, exercise 05. Basically in other tutorials I was taught that when I want to assign a ...
0
votes
0answers
20 views
Compiling error when trying to use ngRoute & templateUrl
I"m learning angular and have seen the ngRoute with app.config work with the script tag, ng-template, and id used indside the index.ejs file and the app.config but I wanted to be able to split out the ...
0
votes
1answer
61 views
Adding or removing a new route to the routeProvider, it doesn't load anything in AngularJS
I have this website routing my pages with 4 html files and it works fine, but when I am trying to add or remove a new one, it just shows blank screen with my navigation bar only.
The error I caught is ...
4
votes
1answer
203 views
using angular route in webapi application
I'm not sure how can I implement proper angular routing in web api application. I'm able to open the pages using this approach: http://localhost:52876/HTML/app/borrower.html
The angular controller ...
0
votes
2answers
226 views
Angularjs routing not working with version 1.5.6
This Piece of code works absolutely fine with cdn https://ajax.googleapis.com/ajax/libs/angularjs/1.2.3//angular-route.min.js
but not with https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6//...