All Questions
Tagged with angularjs angular-ui-router
8,713 questions
0
votes
0
answers
13
views
Cordova UI Router not reloading when using web inspector manual refresh to reload app
When using web inspector on chrome/android or safari/iphone my app will launch just fine and I can inspect everything. However on certain occasions, especially on Safari, app startup console messages ...
1
vote
0
answers
13
views
using Angularjs 1.8.3, my menu item showSubmissions shows the login screen instead of the submissions page
When I click on the $ctrl.showSubmissions() it shows the login screen instead of the submissions page.
I have console.logs and it appears the auth is OK, it does not seem to be routing correctly.
All ...
2
votes
2
answers
104
views
Angular JS Angular 18 hybrid routing
I have an angular js/angular 18 hybrid application which is working, but what I am trying to do is migrate the routes of the customer users like this:
.state('customer', {
url: "/...
1
vote
2
answers
286
views
Component TasksComponent is standalone, and cannot be declared in an NgModule
X [ERROR] TS-996008: Component TasksComponent is standalone, and cannot be declared in an NgModule. Did you mean to import it instead? [plugin angular-compiler]
src/app/app.module.ts:13:4:
13 │ ...
0
votes
0
answers
32
views
AngularJS UI-Router dynamic resolve list
We currently have this dynamic routing (don't mind sytax errors, transformed from CoffeeScript by hand):
angular
.module 'App'
.config(function ($stateProvider) {
$stateProvider
...
1
vote
1
answer
30
views
How to mock AngularJS module config providers
In our module we have a custom method defined that essentially adds on more functionality to $stateProvider...
(function () {
'use strict';
angular
.module('someModule', []...
1
vote
1
answer
35
views
NG8001: 'router-outlet' is not a known element:
i was having a problem at first I was trying to log in to connect with main when I logged in, but while I moved, I asked for help pro gpt and now an error appeared that I could not solve in any way, ...
2
votes
1
answer
81
views
How to maintain query params when redirecting in Angular RoutingModule with redirectTo?
Summary
I want to redirect in my Angular RoutingModule from one path to another while maintaining the query params. However, when the redirect completes, the query params are not present anymore.
The ...
0
votes
2
answers
130
views
Angular textarea does not update data on time but the console shows it correctly
I use service socket.io to emit and receive data. When the send button is clicked it emits data and shows "FENEmitInfo" then receives the data and shows "FENSocketioGetCnt" and &...
0
votes
0
answers
103
views
CanActivateFn get hit but same appcomponent get hit too. standalone. angular
My environment as ng 17.1.13, node 19.9.0, npm 9.6.3. Standalone application.
My app.routes.ts
import { Routes } from '@angular/router';
import { AppComponent } from './app.component';
import { ...
1
vote
0
answers
20
views
How to solve Cannot GET / when refreshing the page on angular-ui-router
I am having trouble reloading the Cannot GET web page / when applying $locationProvider.html5Mode(true) on ui.router, how to fix this error.
function AppController($rootScope, $scope, $state){
// set ...
0
votes
0
answers
150
views
Add suffix to angular route parameter
Previously i have a route with parameter like this:
{ path: 'store/:storeId/.', component: StoreComponent }
i'm able to get the parameter value like this, if i navigate to this url https://localhost/...
0
votes
1
answer
63
views
Trigger a url refresh with ui-router and transitionservice
Hi I have an issue with ui-router . My url is replaced but the page is not reloading.
I work with "@uirouter/angularjs": "^1.0.26", "angular": "~1.5.11",
My ...
0
votes
1
answer
34
views
How to make a drop down textbox required if the radio button is Yes?
I'm trying to code my program where I can have the dropdown textbox required if the answer to my radio button is yes. Right now I just have them both required. Is there a way I can read my value in ...
-1
votes
2
answers
42
views
I want to refresh the page from the function in angular
i am new to the angular i tried to make this work, here the "confirmDoctor" function is making some changes through the api, now i want the the way to automatically refresh the page of some ...