0
votes
1answer
17 views

How to fire or execute http service when link is clicked in angular route in single page web app?

Requirement : I want to click on a menu item which is in single page app and by clicking on that link, loads a view employee.html via $routeProvider and the view should load my employee details by the ...
0
votes
0answers
12 views

Angular / Wordpress base issue

I trying to make one angular app on wordpress. My app works fine when it deploys in root directory, but when i place app in my wordpress theme (wp-content/theme/x_theme) it needs another base ('wp-...
2
votes
1answer
37 views

AngularJS Routing using ui-router

Is it possible to have routing as follows in angular? I'm using ui-router for routing, Angular version is 1.4 FYI .state('home', { url: '/:city', controller: 'HomeCtrl', templateUrl: 'templates/...
0
votes
0answers
82 views

Angular js $location.path not reloading same page if we hit refresh(F5)

We have single page application with 3 controllers. In root controller we will check user exist or not and redirect to landing controller using $location.path. when user is in landing page and hit ...
0
votes
3answers
78 views

Angular ui routing check condition before loading state

Using angular ui-router I'm trying to make nested routing based on condition.i.e Want to check a condition before loading a state. .state('main.home', { url: "/:cnt", abstract: ...
1
vote
0answers
34 views

Reload not working when passing multiple params in ui-router state

I am using ui-router with parent and child states. My states are defined as below : .state("home.ben", { url: "/beneficiary/:name", abstract:true, templateUrl: "app/ben/views/ben-form....
0
votes
1answer
27 views

Angular re-routing from one state to another

When a user attempts to visit my home page, I want to be able to redirect them to a different state based on query params. For example, if URL is: http://example.com, then load the home page. If ...
0
votes
0answers
27 views

Angular App: Using two domains to point into same app's different states to use as home page

I am planning to build a web application in AngularJS using Node JS and MonogoDB. Here I am confused a little bit, the basic functionality of the app will be: 1. sell used cars by owners on my portal ...
0
votes
0answers
20 views

Angular ui-router state is saving URL, even after using location to false as option

I want to keep the state NOT bound with URL. Thus, didn't assign URL while configuring state. But I need to change the URL via separate work flow using: $location.path("/blah"); If we call $state.go(...
0
votes
0answers
22 views

Angularjs no predefined routes

I'm playing with angular trying to create some routes without specifying statically the paths I have the following ng-routes now: route .when("path/of/first/file",{templateUrl: "path/of/first/file....
0
votes
1answer
31 views

Angular 2 - Error "Property 'iconName' does not exist on type 'StateParams'

I am using ui-router-ng2 to handle my routing in my web app. I am currently sending an string(iconName) as parameters from one view to another. Here is my code for icon.component.ts import { ...
0
votes
1answer
16 views

How to test `$routeChangeStart` every time to check the user login statsu?

In my app, I require to check the user details, in case if the user is not logged in, then i require to redirect back to /login page. but my try is not working, where should I do this config? my try ...
4
votes
3answers
117 views

Use “/” as Optional Separator for Parameters in Url - Angular-Ui-Router

I've a tricky issue that I was not able to solve in a while. Essentially, when I'm on a certain $route and I do a certain $state.go(routeName, params);, I need to append a certain parameter or ...
0
votes
1answer
36 views

Angular Routing multi tabs

I have an issue with Angular routing on our project. Take a look at the example page. Example page Select Settings in main nav bar. You can see there 3 tabs. General, Email and Sms. Select Email tab. ...
0
votes
1answer
78 views

Routing with angular ui router - Bookmark feature

I have a controller and a view.View contains three drop down's and table. All the drop down's are dynamic, once the dropdown1 is selected based the value selected REST call is made to fetch dropdown2 ...
0
votes
0answers
50 views

angular ui router dynamically add states to the $stateProvider based on model inside $http.get

Basically the code below works fine except that i have to manually add states inside APP CONFIG file. What I want is to somehow dynamically create these states after the $http.get method, based on the ...
0
votes
1answer
25 views

Angular UI route parameters

I have this pattern in my route.js .state('organizations', { url: '/companies/:options?/:keyvalue', templateUrl: '../app/components/organizations/organization.html', ...
0
votes
1answer
117 views

ui-sref include parameter in ng-repeat loop

I have this table: <table class="table tenant-table text-center"> <thead> <tr> <th class="text-center"> ...
0
votes
2answers
20 views

What does these mean in angularjs ui-router : ' ', '/' while setting up routes like below

I have routes setup as shown below. could someone please help understand what does '' & '/' mean when it comes to routing.. Route configuration below; $urlRouterProvider.when('', function ($...
0
votes
0answers
124 views

Ui router $state unknown provider

I have a angular1.5 application with Typescript. I am trying to use ui router state. to load user token before resolving the route. I get an error: Uncaught Error: [$injector:modulerr] Failed to ...
0
votes
2answers
27 views

ui-router root call not possible?

I've applied ui-router routing and it works just fine. However when I publish the website to azure I'm getting this on the root page Navigating to the /home url works fine and also all the other ...
0
votes
1answer
58 views

angular ui-router different master page layout for different views

I'm little bit stuck with a ui-router issue, every prompt reply will be greatly appreciated. I've managed to configure the main master page which will be in use throughout the child pages. Child ...
3
votes
1answer
77 views

query parameters not working with ui-router

I need to route to state using complete url with query parameters and perform action in controller according to query parameters. It works fine if I use simple routing url with variables like : "/...
0
votes
0answers
88 views

Angular Url without slash with optional parameters

Both ui-router optional param without trailing slash and How to define optional parameter using UI-Router without trailing slash as well? have insufficient arguments and invalid (at least for my ...
3
votes
1answer
27 views

changing the view of the div using angular ui-router

Here is the code which i have written so as to change my view (without any change in the url) <a ui-sref="chat.menu" ng-click="click1();">Latest</a> <a ui-sref="chat.menu" ng-click="...
0
votes
0answers
29 views

window.open() with angular router 404's in production

I'm using slickgrid for a bunch of reports, and for the printing of the reports, I'm using a plugin called slick-grid-print-plugin. In the usage of that plugin, a window.open() is called to a route ...
1
vote
2answers
160 views

Angular-UI Router Nested Views Not Working for some Mobile browsers

I am using angular ui-router for an application, but for some reason the nested views are loaded only for desktop browsers and Chrome for android but not for other mobile browsers such as chrome for ...
0
votes
1answer
84 views

angular ui-router - nested controller - parent controller is initiated twice if child controller is in the same state

.state('home', { url: '/home', views: { 'main': { templateUrl: './main.html', controller: 'mainController' }, 'parent@home': { ...
0
votes
0answers
46 views

Loading views with out css and js with Angular and Node Routing

I am building an app which uses Node and Angular routing. I want to handle all the routes in Angular. Folder Structure: public Images css js partials _search.html home.html index.html sass all ...
1
vote
2answers
371 views

How to wait for promise from UI Router Resolve in Angular 1.5 Component

I'm using Angular 1.5 Component. I could not figure out how to get the data via Resolve. Could you please shed some light? Plunker: https://plnkr.co/edit/2wv4YWn8YQvow6FDcGV0 <!DOCTYPE html>...
0
votes
0answers
19 views

How to force third-party links work as native in Angular?

I have normal angular application and some content on the page which is inserted into DOM by third-party script after angular app is initialised. How can I force links in third-party content work as ...
0
votes
1answer
166 views

Angular UI router resolve undefined in controller when return data in factory

I am using Angular Ui router, when returning a factory in resolve getting undefined in controller. Whats wrong here? Why getting undefined when return a factory call? working when return a string: ...
0
votes
1answer
35 views

UI-Router considering url as state

I have my routing defined as below $stateProvider ('MasterPage', { url: '/', templateUrl: 'views/master.html', }) .state('MasterPage.dashboard', { url: 'dashboard', ...
2
votes
1answer
72 views

Angularjs, replace html content when angular is loaded

I have an angular app with a page and dynamic content. I use ui router for routing. I want user to see static html which server side rendering will return it, and when angular is loaded, change html ...
2
votes
0answers
30 views

Nested views with Guid, too long routes (ui-router). Correct approach?

We are working on an Angular app which includes a lot of nested views. I will give a brief example here, We have a Cities, A city can have multiple regions A region has list of schools School has ...
1
vote
1answer
354 views

Angular ui -router Page browser Refresh Showing null values ?How could persist the data?

I am using Angular Js Ui router, when click the button, i have call the function and take over the params and calling the service and getting a results from Db. working good. In the point of time. ...
0
votes
0answers
19 views

Configure AngularJS Project and Bind Default Views in HTML

I Started a New AngularJS Project, the Configured Project Source Codes are given below. I Can't able to load the Login View even though I specified in app.run -> $location.path('/') The HTML Files ...
0
votes
0answers
47 views

Yeoman generator-angular grunt serve:dist breaks my app (ngRoute)

Failed to load resource: net::ERR_CONNECTION_REFUSED vendor.09a0350e.js:9 Uncaught Error: Bootstrap tooltips require Tether (http://github.hubspot.com/tether/) scripts.b0d54db6.js:1 ...
-3
votes
1answer
23 views

How to do url routing in angular js with $urlRouterProvider

Can anybody provide a simple angular js page which implements the ui-view and url Routing using $urlRouterProvider attribute Regards, Seshi
1
vote
1answer
315 views

angular ui routing - avoid hashbang mode. ie9

I'm trying to get html5mode, angular ui routing working in IE9 if (window.history && window.history.pushState) { $locationProvider.html5Mode(true); } else { console.log('IE9'); ...
1
vote
1answer
44 views

Pass common params to all states UI router

I am a newbie in UI router. I need to pass a global param to all my states. Is there any way as config to have global params in UI Router?
0
votes
2answers
372 views

Angular2 : Redirect to a page at application startup

I'm facing a little issue for my web application in Angular2.. Each application launch, I would check if the user has a right of access. However I don't know how to redirect the user to the route ...
0
votes
3answers
138 views

Angularjs - set default child view to ui-view

I followed this example to set up a page with 2 child views: https://www.thepolyglotdeveloper.com/2014/12/using-nested-states-angularjs-ui-router/ I have everything in place now, and if i click on ...
1
vote
1answer
101 views

UI-Router state doesn't work when I'm redirected to my app from Adyen (payment system)

I'm trying to get my app to work with the Adyen payment system. At a certain point I redirect the user to Adyen to make a payment. When the user is done, Adyen redirects to the provided return url. ...
0
votes
0answers
42 views

Angular UI-Router: Dynamic view / templates from query string params

How do I go about defining explicit routes / templates / from a query string parameter? I want to take the following route definitions, which work currently in this format: http://localhost:8101/#/...
0
votes
0answers
41 views

change angular url params lat&lng make the map unusable

I am building an app with angular. through its routing service, I defined several pages. In one of them, there is a MapBox map. I set its coordinates in the url ( #/map?lat=x.xxxx&lng=y.yyyy ). If ...
2
votes
1answer
689 views

Passing data in between controller without help of url?

I am creating two page webapp using AngularJS. my Json file is: { "data": [ { "name": "bhav", "id": 123 }, {"name": "bhavi", "id": 1234 }, {"name": "bhavk", "id": 1235 } ] } ...
1
vote
1answer
640 views

Several routes in one component Angular 2

Suppose there is a component - UsersComponent, and it has two methods: getAlUsers() and getUser(id). In the @RouteConfig we can use only one name of the component (constructor will be called default ),...
0
votes
0answers
22 views

Dynamically downloading and including controller and template files using `templateProvider` and `controllerProvider` not working

I'm dynamically downloading and including controller and template files using templateProvider and controllerProvider. The files download properly but I can see that the ui-view element is left blank ...
1
vote
3answers
140 views

Updating Controllers/UI Elements In Angular

When working on a project, as these things tend to happen, we came across a situation where we were stumped on how to update certain UI elements when other things were done. For example, the ...