Questions tagged [angularjs]
Use for questions about AngularJS (1.x), the open-source JavaScript framework. Do NOT use this tag for Angular 2 or later versions; instead, use the [angular] tag.
262,750
questions
-1
votes
0
answers
30
views
Why do I have Policy Violation even though API Level 33 Compliance is Complied since August 25, 2023
How are you? May I seek why Google Play Console has informed me I am violating policy regarding API Level 33?
This has been complied since August 25, 2023 which is version 7.0.4 currently in ...
-1
votes
0
answers
22
views
Cannot read properties of undefined (reading 'post') when working on an angular js and angular 2 hybrid app
I 'm workin on an angularJs app and I'm on the proccess of migrating to angular 2
using upgradeModule
while trying to migrate the service to angular 2 I had a error in injecting dependency in the ...
0
votes
0
answers
57
views
Interceptor not intercepting in Angular 17
I'm learning angular through course and currently I'm learning about Interceptors. The angular version in the course isn't 17 but the one which I'm using in my local is. So, after 1st trying to ...
0
votes
2
answers
39
views
How do I register NGRX provideEffects with Angular 17 standalone?
I'm new to Angular 17 and there's really limited docs as to how to use NGRX with new standalone modules or components.
I've installed ngrx effects:
npm install @ngrx/effects
But now because my ...
0
votes
1
answer
25
views
hybrid angularjs and angular17+ application
I am trying to run angularjs and angular17+ side by side in a hybrid setup. I followed all guidelines and created a custom webpack config to be able to pack my angularjs files and my angular files. ...
-1
votes
0
answers
17
views
Rewriting an angularjs project to angular 16. What is the best method? [closed]
I have an angularjs project with directives, configs, services, and templates, and I want to rewrite it to angular 16. What is the correct way?
I haven't started yet and I'm exploring to find the best ...
0
votes
1
answer
53
views
Angular standalone componentnot getting imported properly and after getting imported properly, not displaying anything on html
So I am pretty new to Angular and, currently I am making a clone by using Firebase and all. So, Angular is throwing two error's to me named:
Component AppComponent is standalone, and cannot be ...
0
votes
0
answers
27
views
Google Map GeoCoding API does not work for some postal codes while it works for some other postal code in the same country
I am using the below API to get coordinates using input as postal_code & country (DE in my case which is Germany):
https://maps.googleapis.com/maps/api/geocode/json?components=postal_code:13627|...
-1
votes
0
answers
13
views
ANGULAR JS - conditionally send props through HTML template
I have an text component that I wish to send it the prop "error-message-tootip" only when there is an error regarding the input value.
otherwise, I don't wont to send it (even as undefined)
...
0
votes
0
answers
27
views
I am trying to create a dashboard with 2 same dates but it is showing 2 different dates
For a dashboard, on the left and right are showing different Dates. Ex, on the left it is showing 5th Nov, on the right it is 6th Nov.
How to Implement solution to show Consistent date on the ...
0
votes
2
answers
32
views
How to pass and use extras in navigateByUrl() in angular 11?
I am passing data with navigateByUrl method and want to access this inside the target components ngOnInit().
this._router.navigateByUrl(${baseUrl}?${previousFilter}, { state: {from:'details-page'} });
...
0
votes
0
answers
24
views
importmap with anggularjs some time cause error `A controller with this name is not registered`
Importmap config:
pin "application", preload: true
pin "home", preload: true
application layout:
<body id="page-top" ng-app="userApp" ng-strict-di>
<...
-2
votes
0
answers
21
views
In Javascript/Controller page I want to Generate Same keys for group users
I'm using Js/COntroller for Validation process.
I want to Generate Same keys for group users.If the group having n number of users means every user should receive the same key.
$scope.tableLoader = ...
-2
votes
0
answers
30
views
<a> tag doesnt work Angular when i want to wrap image and username [closed]
isnt clickable
<a href="https://google.com">
<div class="row">
<div class="col">
<img class="...
-3
votes
0
answers
20
views
How to Handle 500 Internal Server Error after PHP Update in Slim Framework [closed]
I recently updated my PHP version due to the addition of a new page requiring the update. However, after the update, my AngularJS application using the Slim Framework started throwing a 500 Internal ...
0
votes
1
answer
33
views
build failing on a Jenkins on a given branch due to path export
I have a chunk of files related to a new feature that will be deployed using Jenkins.
I was able to deploy other branches, but I have been facing issues with a given branch.
I suspect the issue might ...
0
votes
0
answers
42
views
Bare module specifiers error with AngularJS + Nx
i have these imports in my project
import MARKETPLACE from 'app.module.js'
import angular from 'angular'
i got the following error when i run webpack
Uncaught TypeError: The specifier “app.module” was ...
0
votes
0
answers
18
views
session timeout multiple tabs in angularJS
I used the bootstrap session timeout modal in my AngularJS application but this function just working in one tab and when I work on multiple tabs my old tabs logout even that I am active in another ...
0
votes
0
answers
46
views
Cannot find name 'NDEFReader' in Angular 9
I'm trying to integrate WebNFC in my angular project, I found only package is @types/w3c-web-nfc but when I run application it shows me the error mentioned below:
error TS2304: Cannot find name '...
0
votes
0
answers
18
views
Bind scope function to output event in angular hybrid application
I am using angular hybrid application. I have a directive created in angular js. It has a scope method called onUpdateStatusCompleted. The directive has an angular js component inside it.
The link ...
0
votes
0
answers
7
views
angularjs element attaches to DOM only on first page entry, but not on page refresh/re-entry
In my cordova/ionic app, in one page view button opens a modal and an ng-repeat generates the DOM elements. After the ng-repeat attaches all the new DOM elements, then I am cloning a hidden DIV and ...
0
votes
0
answers
359
views
Data path "" must have required property 'browserTarget'
I can't run my ionic serve because of this problem,
Error_Screen_Shot
Error: Schema validation failed with the following errors: [ng] Data path "" must have required property browserTarget....
0
votes
1
answer
61
views
Angular PUT Request Issue - "Required request body is missing"
I am facing an issue with an Angular application where I am trying to send a PUT request to my server, but I'm getting the error message "Required request body is missing."
Below is the ...
0
votes
0
answers
19
views
AngularJS (1.5.0) nested ng-repeat with radio button not initializing checked properly
I use a dynamic name attribute technique.
I'm using AngularJS verison 1.5.0.
When I run this AngularJS example (code below), which has nested ng-repeats (so I use $index and $parent.$index), I expect ...
0
votes
0
answers
23
views
Front-end AngularJS alternative library for an existing SSR (Server-side Rendering) Apps using ASP.NET Core MVC
Since AngularJS is no longer have public maintenance and support, is there any new front-end library alternative to AngularJS for an existing SSR (Server-side Rendering) Apps using ASP.NET Core MVC? I ...
0
votes
0
answers
18
views
Canvas redraw does not happen after leaving and returning to a page view
I am creating ticket qrcodes on the fly and attaching them to an ng-repeat in a modal when a user clicks a button to open the modal. It works. If the modal stays open, then every 5 minutes the ...
0
votes
1
answer
34
views
Prevent div in flexbox from changing width with additional content
Hi I have this web page where I have a list of angular.js directive elements that are strucured in a flexbox.
The directive elements look something like this:
<div class="variable-input-...
1
vote
0
answers
17
views
What is date-target-input= "nearest"?
<div style="display:flex;">
<div id="{{ 'postStartDate' + $index }}" class="col input-group date pl-0 pr-0" data-target-input="nearest" style="...
0
votes
0
answers
30
views
Gap is present in span in Angular but not in AngularJS
There are 2 equivalent component templates one written in AngularJS:
<span ng-repeat="status in statusInformation.statusList | filter : whereFilter"
class="show-on-hover"&...
1
vote
2
answers
46
views
How to Cut a String in AngularJs
I have the phrases:
"Shiloh Match Jolie",
"Zahara Marley Novel",
"Pax Dix Bat",
"Maddox Chivan Jcalie"
I want to get all last character in phrases:
"...
0
votes
0
answers
9
views
Issue with AngularJS Base Controller and Modal Service Interaction
I am encountering a problem with my AngularJS base controller, specifically in its interaction with a function named closeMyModal provided by my ModalService. Initially, the base controller ...
1
vote
0
answers
15
views
cordova app issues with page caching options
I have run into a problem with cordova page caching:
.state('tab.clubs', {
cache: true,
url: '/clubs',
params: tabParams,
views: {
'tab-clubs': {
templateUrl: '...
0
votes
0
answers
19
views
how to manage rest API timeouts in a mobile app?
I am looking for methods and best practice concepts for managing app API timeouts.
My app communicates to my server API - and on occasion there are timeouts with Status: -1 being reported via my app ...
0
votes
0
answers
13
views
CSS files are can't resolve in Migration of Angular JS 1.7 and Angular 17 hybrid model application
[webpack-cli] ModuleNotFoundError: Module not found: Error: Can't resolve css in directoty\src folder
Webpack version is 5.89.0
I am expecting the correct syntax of loading CSS, JS and TS files from ...
0
votes
0
answers
21
views
Text sanitization is AngularJS 1.8.3
I have a sample text string (shown below) that contains html tags :
SAMPLE_TEXT= "<b>This is bold Text</b>"
This text is rendered on the UI using ng-bind-html
<span ng-bind-...
0
votes
1
answer
39
views
Display tooltip only when visible text ends with "..."
I have a table with 5 columns and more than a thousand lines. I will only be talking about 1 column and copy the code to the others if someone here can help me to make it work.
Depending on the length ...
0
votes
0
answers
7
views
Error occurs in the template of component CategoryListComponent
Error: src/app/features/category/category-list/category-list.component.html:11:22 - error TS2339: Property 'categories' does not exist on type 'CategoryListComponent'.
11 <ng-container *ngIf="...
-1
votes
0
answers
28
views
Cookie is removed in API Response but not from browser Angular JS
I am working on hybrid angular application using Angular 8 and AngularJS. I am trying to set httpOlny cookie in browser after login using POST api and remove the cookies using DELETE api from the ...
0
votes
0
answers
12
views
Angular applications, express.js server, sending an email via form on the front-end side
Error sending message:
Object { headers: {…}, status: 500, statusText: "Internal Server Error", url: "http://localhost:3000/invia-email", ok: false, name: "HttpErrorResponse&...
0
votes
0
answers
31
views
Nested transclude within Web Component (AngularElement)
I am trying to mix up Angular and AngularJS using AngularElement
I know about ngUpgrade, and I do not want to use it
The basic idea is to replace some AngularJS components progressively without ...
1
vote
0
answers
26
views
Alternative to toPromise with downgradeInjectable
A service I've written in Angular is being consumed in a third party angularJS application. My pattern has been: create a service method which returns Observable<someType> and then create a ...
0
votes
2
answers
57
views
How to integrate MSAL library from scratch with Angular js 1.x application
We build our application based on AngularJS v1.8.2 and Java as a backend. Currently we have used keyclock for MFA. We have implemented everything from the backend.
Now we have to replace keycloak with ...
-2
votes
0
answers
13
views
I want to Drop Dropdown Which i m getting from API to DropZone of another component
Div1
ClientName:
{{ classItem }}
Div2
Div3 <...
1
vote
0
answers
42
views
How to place the text above the table when exporting excel?
I exported an excel file and I want that this text is in above the table. How to do that?
Here is the angular js code:
$scope.generateLedger = (supplier_id) => {
$http({
method: ...
0
votes
0
answers
20
views
How do I create an Angular Project using the CLI that uses Pug3?
I created a project using the following...
ng new my-app
cd my-app
npx ng add ng-cli-pug-loader
But I get
.../my-app on branch main > npx ng add ng-cli-pug-loader
npm WARN cli npm v10.2.3 does not ...
0
votes
1
answer
10
views
ng build issue: Error: Unknown argument: base-href/
Issue Image
The above error is what i have issued when i was trying to build the angular project for external hosting, using the ng build command, anyone faced this issue ?
Tying to run the ng build ...
1
vote
1
answer
47
views
Bootstrap 5.x Tooltips Not Working Inside an AngularJS Controller
If I may borrow some talk-radio vernacular, "Long time listener; first time caller."
I have been trying for a few days to add some tooltips to my site and really like the look and feel of ...
-1
votes
1
answer
19
views
Jest: ReferenceError: uuid is not defined
When I am testing an angularjs directive using jest, in directive compile, I have used uuid.v4() to generate id for directive, there will be an error when I test this directive, "ReferenceError: ...
1
vote
0
answers
56
views
Why form submit with redirect doesn't work?
I have this piece of code in angular 16:
<div class="position-absolute top-50 start-50 translate-middle">
<div class="text-center">
<img id="logo" src=...
0
votes
1
answer
72
views
Cookie is set in Response Header but not in browser
I am working on a hybrid angular application using angularja and angular 8. I am trying to implement a cookie that needs to get set after login using POST request but the problem is that after login, ...