Tagged Questions
-2
votes
0answers
10 views
complex condition for angular ui-route url parameter via regexp
How I can to set condition any string except "admin" for angular ui-route parameter with regex?
This is my config for state (coffeescript)
.state
url: '/{celAlias:(?!^admin$)(^.*$)}'
...
2
votes
2answers
17 views
How to update headers in $resource when routing to a new state
I'm trying to implement JWT token in this project. For that I used Authorization header in the $resource, like as this.
When I login on UI state "A", after getting logged in, I put the token in the ...
0
votes
1answer
23 views
Angular UI router sub states not working on IE
As I said in my other question, I'm creating a webapp in AngularJS with NodeJS, Express and Angular-UI-Router.
At first I couldn't get the page to load at all (I managed to solve that problem), now ...
-1
votes
1answer
27 views
Angular UI-Router, not found on URL refreshing [duplicate]
When I type http://localhost:6060/home, it showed me cannot get /home, but when I click the button $state.go('home'), it shows, and the URL is still http://localhost:6060/home. But when I refresh, it ...
0
votes
2answers
19 views
AngularJS ui.router giving me a blank page
I see a couple unanswered question along these lines - hopefully, I will state this in a way that elicits a solution. Thanks in advance
AngularJS 1 - using grunt
index.html
<!doctype html >
&...
1
vote
2answers
30 views
AngularJS Node app downloads instead of loading in Internet Explorer
Whenever I try loading my AngularJS webpage (on a node js + express server) through http://localhost:3000, Internet Explorer just tries to download it with a random name and no file extension, instead ...
0
votes
0answers
27 views
Angular.js Dynamic routing with templateUrl
I have a web site where the code is organised in 3 folders: websiteTemplate-Front with angular.js- Back witn node.js.
I need to create a dynamic routing when the user when he click on the logo picture ...
0
votes
1answer
28 views
Error: $injector:modulerr Module Error in angular1
I have implemented ui-router in my angular 1 application and also configured the route state. When I try to access the page, I get the error as mentioned in the title of this post. Please find my code ...
0
votes
1answer
27 views
ionic/angular $state.go gives blank screen for login page
I'm trying to implement a login/auth page using firebase for my ionic app, but am encountering some issues.
I use tabs in the main part of my app, but when I try and redirect a user to the login page ...
1
vote
1answer
15 views
Inheritance scope using ui.router to filter data in ng-repeat [Angular1.5]
I have a problem probably with inheritance scope using ui.router. I'm creating a small application something like addressbook. I want to have an input in navbar which allow me to filter addresses on ...
0
votes
0answers
14 views
AngularJs 1.5.x Component Bind - Slow with Promise
I have a little bit of a UI/UX issue on my hands when using a component in AngularJS. I have a component defined like so:
angular.module('app').component('dashboardView', {
templateUrl: 'app/...
-1
votes
0answers
21 views
AngularJS and structuring application for a big project
I am a newbie to both Webapplication and AngularJS.
I have a big AngularJS Project.
I am trying to figure out how the application is structured and the real problem is I can't load the home page ...
0
votes
3answers
34 views
Getting related array element AngularJS
I have a php api that returns a list of companies and a list of users,
Each user has a company_id assigned.
(Users : CustomerList) (Companies : CompanyList)
The companies have a company_id and ...
0
votes
2answers
26 views
Hiding parameter from URL ui-sref (ui.router)
My HTML is as follows:
<a ui-sref="videoParent.Display.video({videoName:'[[sVid.slug]]', videoId:'[[sVid.videoID]]'})"><p>[[sVid.name]]</p></a>
I then retrieve the parameters ...
0
votes
1answer
30 views
ui router issue with Materialize CSS
I am using Materialize CSS with Angular ui.router to handle states and render HTML.
But facing issue with Materialize Select as it is not initialized on state change as Materialize components ...
0
votes
0answers
17 views
Angular routing always access root level url
I am using fountainjs to generate my angular1 boilerplate with ui-router to control the routing.
During the development, my app run without problem, but the problem lies when I try to run the result ...
1
vote
1answer
61 views
$state.go isn't getting the template
I'm new to initializing angular apps using the angular.module methods. I'm not getting any error messages, however, my template thats linked to my state isn't loading in.
//APP.JS
var libraries = ['...
0
votes
2answers
40 views
Resolve a promise before state changes UI-Router
I am using ui-router and ui-router extras
$scope.$on('$transitionStart', function (e, $transition$) {
var params = {id:1};
factory.webService(params)
.success(function (data) {
...
0
votes
0answers
14 views
Angular - when refreshing page, slash is being appended to url
I have the problem that whenever I refresh the page, a slash is being added to the url. Im being automatically (with timeout) directed to the state 'home' from the state 'intro'.When I go to home, ...
-2
votes
0answers
15 views
SomeFactory.somefunc() not working in AngularJS
I'm having issues calling a method from a factory in Angular. I made various attempts and small changes and couldn't solve this issue, which makes me think it's something really simple. Here's the ...
1
vote
1answer
15 views
How to have angular nav-bars and ng-route together in a MEAN Stack app?
I wish to create a MEAN Stack app, in which the front-end UI has navigation bar (nav-bar) containing three navigation links to three different pages.
On clicking the tabs/navigation items, the ...
0
votes
1answer
10 views
ng-token-auth resolve function
I have a simple question (I think) about how to handle the resolve respond from my states. As I am using Ng-token-auth to handle authentication, in every state I have the following code:
.state('...
0
votes
1answer
28 views
Angular ui-routing with domain aliases
We use Angular-UI-Router to navigate to our website. That is working fine. But we want to use domain aliases which point to a specific page of the website, with the url of the alias in the addressbar.
...
-1
votes
0answers
38 views
How to change %20 to _ in the url using angular js ui-router?
I have list of api's , I have to select the list of bank name in the first drop down , It gets routed as for example: BANK%20OF%20BARODA, ALLAHABAD%20BANK
Can anyone please help in changing the ...
-1
votes
1answer
15 views
how to implement controller with ui-router angularJS
im trying to use ui-router in AngularJS for the first time, but i think ive set up script.js file incorrectly. Any help would be appreciated. Is the problem with the app.controller?? Where have i gone ...
0
votes
1answer
14 views
angular-ui how to design parent list view with search parameters
What is the design pattern for next problem?
I have a state 'a.list'. It shows list data and filter. When i change the filter it reloads the 'a.list' state with new search parameters (?type=emp&...
0
votes
0answers
19 views
Bootstrap uib-tabs is invoking controller tab twice
I am using uib-tabset from bootstrap. For every route(tab) I have separate view and controller. I am having issues when navigation from one tab to another, first it goes inside first controller(tab) ...
0
votes
0answers
42 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
1answer
16 views
Issue with ui-view not rendering template
I'm still pretty new to using Angular's ui-router for SPAs, and I'm having some issues with the template not being rendered on the browser (I'm using Firefox). Below is my code for app.js,
angular....
0
votes
0answers
10 views
Why in $rootScope event $stateChangeStart I've got e.defaultPrevented = true by default?
Why could I having that output with the following code? Is possible that any plugin or something else be interfering?
angular.module('myApp')
.run(function ($rootScope, $state, $urlRouter, ...
-1
votes
0answers
27 views
angularJS - ui router not working
im trying to use ui-router, but my routing does not work, i also get the following error : "GET /lib/angular.js" Error (404): "Not found". I also installed ui-router from the command line: npm install ...
0
votes
1answer
16 views
Prevent nested ui-sref to be triggered when there is a parent ng-click
Pratically the inverse of Prevent calling parent when nested ui-sref
I want to click on a nested element which has a ui-sref, but instead only the parent ng-click should be triggered (conditionally), ...
0
votes
2answers
27 views
Clicking a link doesn't redirect? How to debug ui-router?
I scaffolded an ionic V1 site using tab template and created the following link in a page.
<a href="#/tab/Test">
Test
</a>
And an empty control for "Test" page.
.controller('TestCtrl',...
0
votes
1answer
21 views
Parsing Oauth 2.0 return parameters in angular-ui-router
I'm attempting to authenticate a user using Google's Oauth 2.0 API. When my app HREF's to the Google authentication page, it successfully passes information back to my AngularJS app. However, I'm not ...
0
votes
0answers
32 views
How could I code so that angular ui-router's ui-sref to work?
I have written a demo code for ui-router but getting error
like: unknown attribute 'ui-sref
I go through from the source: (How to get angular ui-router's ui-sref to work, when inside a directive&#...
1
vote
0answers
41 views
Using Resolve In AngularJS Routes to get Json data
I'm trying to get Json data in AngularJS Routes and then inject it to the controller. A resolve contains one or more promises that must resolve successfully before the route will change. This means ...
1
vote
1answer
18 views
Load child states without refreshing parent state in AngularJS
I am using Angular UI Router and when i am click on any option in navbar it loads the corresponding state into a child view. But the problem is whenever i click on any of list items in navbar it loads ...
0
votes
0answers
24 views
ui route - hierarchy prevent innecesary calls to web service
I'm trying to acomplish the following structure in AngularJs ui route:
page/operationgroup
page/operationgroup/:id
page/operationgroup/operation
page/operationgroup/operation/:id
page/operationgroup/...
1
vote
1answer
29 views
ui-router w/ specific child state only renders JSON on page refresh , no view
I've used this architecture throughout my app, but it is not working here, and I can't figure out why.
I'm loading the whiskey data to my parent state whiskey, which should pass the data to the ...
0
votes
2answers
43 views
ui-router nested state won't load
This is a pretty standard question, however I can't seem to find a solution in anything online. Below is the router/index.html page I'm using. I'm not getting any errors in the console, however when ...
0
votes
1answer
40 views
How i will get to know in routeChangeStart event event triggered by JS or click
Main.js
$routeProvider
.when('/home', {
templateUrl: 'home.html',
controller: 'StudentController'
})
.when('/viewStudents', {
templateUrl: 'viewStudents.html',
...
0
votes
1answer
50 views
How to access a object value of another angular component
Unfortunately I can't pass data between components.
I took the bcqr-reader demo at
https://embed.plnkr.co/m9dtF9llcAw7eYE94b5k/preview
and pass the scanned information to my second component.
First ...
0
votes
2answers
52 views
UI Router - how to store data between states without passing them explicitly to $state.go(…)?
I have language code in Gallerycomponent:
function Gallery(LanguageService) {
var $ctrl = this;
$ctrl.$onInit = function () {
$ctrl.code = LanguageService.language;
_loadGallery($ctrl....
0
votes
1answer
41 views
How to stop angular from creating multiple instances of a controller every time we use $state.go
I am using UI router for angular routing. Everytime $state.go() is called a new instance of the controller is being created. I have $rootScope events here. So everytime I want to print any log (using ...
1
vote
2answers
70 views
How to display navigation and footer in every page in Angularjs?
I'm making a SPA. I want to make a separate component for Navigation, Section, and footer. Navigation and footer must display for every page when I go to Home or About page, only the Section should ...
0
votes
1answer
28 views
AngularJS not displaying array from rest call when loading view
I am new to angularJS and may be missing something small but I have a spring boot backend providing a rest api for angular front end. I am using ngResourse in my factory and this appears to work fine....
1
vote
1answer
28 views
migrating from ngRoute to ui.router
I have a problem with migrating from ngroute to ui.router:
using ngroute i have couple angular files:
module.js
angular.module('betTogether', ['ngRoute']);
route.js
angular.module('betTogether')....
1
vote
1answer
38 views
cache route pages disable
I have a website using angularjs and bootstrap. The problem is with the cache in the client browser. I post something...the client get old stuff from cache. I am using angular-ui-router-0.3.1 for ...
0
votes
2answers
22 views
ocLazyLoad controller dependency data resolve issue
I have a situation where i am loading a service and controller with ocLazyLoad in angular js, which is working as expected. But, i also want to pass some data to controller by using the service which ...
0
votes
0answers
40 views
AngularJS, UI-Router, Components, TypeScript
i've tried to create a simple angular1 component with the ui-router but it seems I cannot get it to render and I have 0 error in console...
Here is the code:
Config.ts
module app {
export class ...