Tagged Questions
Use for questions about AngularJS, the open-source JavaScript framework. Do NOT use this tag for Angular 2 or later versions; instead, use the "angular" tag.
0
votes
0answers
7 views
Ionic 2 will not let me loop over an object of objects using *ngFor
I am developing an app where users can search for classified ads.
However, I am unable to display the search results.
Here is my search_seults.ts:
import {Component} from '@angular/core'; import {...
0
votes
0answers
3 views
Angular 2 Failed at the [email protected] build script 'tsc -p src/' and 'npm run build'
I have setup a new angular app by cloning the angular quickstart from github. At first install, I can npm start and the app works, however, when I left my workstation for 30 minutes, when I went back ...
1
vote
1answer
12 views
How to update global variable after http call Angular
I have a global variable which I need to update after http get call. After update I need to pass this updated variable to other function. I can't understand what is the best way to do this. Here is my ...
0
votes
0answers
10 views
ng-model value is missing
i'm trying to get a value from a textbox however field city's value is missing froom the logs, and some other fields are jumbled up. i checked the html form and it's fine. am i missing something?
...
0
votes
1answer
6 views
Angular directive open date picker
I have an Angular directive that includes a form with a datepicker. I am trying to create a function to keep the button click from calling submit on the form. I can not determine where to find the ....
0
votes
0answers
6 views
Firebase - Can You Append / Prepend to an Already Synced Array?
I have a chat application that runs off of Firebase / AngularFire. When an user clicks on a chat conversation, I run the following to get the last 50 messages between the user and the person he / she ...
0
votes
1answer
8 views
md-chips when readonly='true', still need to have a placeholder
I have the md-chips template as:
<md-chips dropdown ng-model="chipArray" readonly="true"
md-on-remove="blah($chip)" ng-click="blahBlah()" placeholder="Add an item">
<md-chip-...
0
votes
0answers
27 views
How do I randomly loop through ng-repeat one by one in Angular?
I have an angularJS app that I'm working on that needs to loop through an ng-repeat one by one. But not in order. The next item in the loop needs to be randomly selected. I have them looping one by ...
0
votes
0answers
9 views
AngularJS ASMX Return with ng-repeat blank
Hey everyone I'm extremely new to AngularJS and I have an issue with my ng-repeat showing blank table rows on the page. So, I'm calling a asmx web service to return a JSON Serialized string of simple ...
0
votes
0answers
16 views
Angularjs app with static pages
All,
I have an angularjs app. I have static html site which needs to be loaded first and from that site we have a link which will launch the angular app. Right now I am able to launch the app which I ...
0
votes
1answer
8 views
AngularJS promise chain (in CoffeeScript) not working as expected
I have following code snippet. I'm trying to make three calls inside a function and set scope variables. call 1 and call 3 are returning same values even service gives different values, I can see the ...
0
votes
1answer
16 views
Form not updating in AngularJS
I have a edit button in a form, when user clicks on the edit button, and edit the form and clicks on save. It gets updated. But when the user reloads the page, it does not update the page. So, here is ...
0
votes
0answers
18 views
How to read option label instead of option value using ng-model?
The model can be set and read such like below:
In my Controller
$scope.formData = {};
In my View
<select id="modules" ng-model="formData.read_value">
<option value="module_1">Module ...
0
votes
2answers
29 views
Add a variable with quotes to string in Javascript
This is probably stupid simple, but I can't figure it out.
I am building a string in javascript
var template = '<div class="big-long-string-here">';
Now that works fine, but say I wanted to ...
0
votes
1answer
10 views
Angular filter is invoked, even when filter parameters do not change
We have an Angular 1.6 filter that keeps firing all the time.
The HTML looks like:
<div class="row" ng-repeat="(promptId, q) in (categoryDoubleFiltered = (categoryFiltered |
custom:...
0
votes
0answers
17 views
AngularJS - Transfer data between HTML pages
I have a controller "CourseController" which controls 2 HTML pages, it detects if the current user is a teacher or a student through cookies, then gets all his/her courses , in "Courses.html" I use ...
0
votes
0answers
9 views
view not update when array change angularjs
I have three module
app.root , app.shell , app.shop . And it like that
.module('app.root',['app.shell,'app.shop'])
In app.shop , I try put item in cookies
vm.cart = dataServices.cart;
vm.add =...
0
votes
0answers
16 views
Skip the upload button
I have a mean-stack application. I want to implement a button by which users could upload a thumbnail image. I have followed this link, which works.
However, I want to skip the upload button: users ...
0
votes
1answer
16 views
Custom directive not resolving $scope variable
I have a custom directive but its not resolving the $scope variable filterValue, if I replace that with the actual value code is working fine,
Not Working :-
<tableau-viz
height="'500px'" url="'...
0
votes
0answers
9 views
Read & Display Text File Using Angular CLI
Ok, so it's quite obvious that I'm a noob with Angular. I am using Angular CLI with InteliJ Idea for my IDE. What I am wishing to accomplish I haven't been able to find a tutorial which helps.
...
0
votes
0answers
7 views
Running Two JS scripts on a single SVG map
I am running two JS scripts on the same SVG map which display json data on it. One of the scripts displays information points and the other possible faults. The application itself is being reworked as ...
0
votes
0answers
8 views
How can I load only relevant scripts in my scripts section in AngularJS
I have a home page and a login, behind the login will be at least 1 system that the home page scripts section doesn't need to know about. It's going to be secured, but I don't want to load the system'...
0
votes
0answers
12 views
Sorting a hash in JS - for Angular ng-repeat + filter
Problem: We changed an Angular ng-repeat from an array to a hash, and now we realize that this might affect the sortability/orderability of the list. Whoops.
In newer versions of Node.js, Chrome and ...
0
votes
0answers
7 views
No trailing slash - Angular $stateprovider
My routes for a Angular 1 application is as below
$stateProvider
.state('loginHome',
{
url: "/",
templateUrl: "scripts/spa/features/account/views/login.html"
})
.state('login',
{
...
0
votes
0answers
5 views
Angular - $watch for $dirty on a form not working?
I am trying to watch for changes to a form using Angular 1.x. I am doing this so that I can display a warning if the user navigates away from the page before saving the data. I am able to $watch for ...
0
votes
0answers
4 views
UI-Grid Getting previous checked cell
plunker link
I'm trying to display the previous checked x,y or z column value in the Type column when an Own Value is checked.
When the page loads, the x column is default.
{ name: 'Type', ...
0
votes
0answers
7 views
how to pass arguments to an observables that needs to run on a set frequency
I am developing an angular web app. Have a series of observables that are merged.
One observable is the following:
getModel(startTime, endTime): any {
let url = this._modelServerURL;
url +='?...
0
votes
0answers
9 views
passing razor value into angular controller
I've looked at a half dozen examples, but none of them seems to work for me - maybe because of the peculiar var myController = [] format of the code I inherited.
.cshtml:
<div id="ng-app" ng-app="...
-2
votes
0answers
11 views
angular-ui/ui-select performance alternative
Do you know any good performance alternatives to angular-ui/ui-select for AngularJS 1.6?
0
votes
0answers
4 views
Online design tool (Like Web2Print) with Angular 2
I'm looking to create an editor or design tool that allows me to create and save designs made from multiple uploaded images, custom controls, etc. Maybe using HTML5 canvas and JavaScript. Is there any ...
0
votes
0answers
4 views
ui-grid-draggable-row working only on right click
rowTemplate:<div grid="grid" class="ui-grid-draggable-row
ui-grid-draggable-row-over\" draggable="true"><div
ng-repeat="(colRenderIndex, col) in colContainer.renderedColumns
track ...
1
vote
1answer
15 views
Jenkins parameterized build triggering with no parameters
I have an internal website that I am developing for my company in order to trigger builds of our mobile app from a Jenkins job. The website is written in AngularJS and I am using the http module to ...
0
votes
1answer
27 views
How can I send a $http.delete() request for this RESTful implementation?
This is my PHP code.
<?php
header("Content-Type: application/json");
// get the HTTP method, path and body of the request
$method = $_SERVER['REQUEST_METHOD'];
$request = explode('...
0
votes
2answers
18 views
Getting parameter with correct format Angular
I´m woring with Angular and I pass a parameter from one controller to other like:
Controller send:
var input = { "ID": row[0].ID };
$scope.catalogo = JSON.stringify(input);
...
0
votes
0answers
24 views
ng-repeat filtered by object of previous ng-repeat
I have this structure, but i don't know how can I filter a ng-repeat content with an object of previous ng-repeat iteration.
my model:
[
{
"_id": "58f514ee89d077367e56d445",
"...
0
votes
2answers
16 views
How to pass ng-repeat filtered list to custom directive
I'm trying to pass the result of an ng-repeat with a filter into a child directive, but I am getting an infinite digest cycle error.
Plnkr
HTML
<!DOCTYPE html>
<html>
<head>
&...
0
votes
0answers
29 views
What is this char “DEL”? it's displayed in a ng-repeat loop on google chrome
This char look like this on google chrome.
And look like this on mozilla
I don't know what is this char "DEL" . Even google doesn't show any result pasting the char.
This is my html Code
<tr ...
0
votes
1answer
13 views
How to configure WebAPI to ignore timezone offset when transmitting objects to client-side code?
I am using AngularJS with Web API 2.
The date on the server (in the databae) is one, when it gets to client-side from Web API, its another (-4 hours).
On the server, WebAPi method
So the real date ...
0
votes
2answers
14 views
Update existing value of a key in a hash in javascript/angularjs
I'm inserting an object in an array with two keys question_id and rating whenever user clicks a star on front-end. What I'm looking for if user changes the rating of any of the star then update the ...
-5
votes
0answers
25 views
How to create a node js project with angular typescript as frontend?
I am new to node and angular, i have no idea how can create a project which has frontend module written in angular typscript. Another team has built angular frontend app in typescript. I need to find ...
0
votes
0answers
7 views
Access svg element from svg files using angularJS
I am new to http request and response. I have two svg files and retrieving data from these files.
var iconObj = [{
'file': 'align-left'
},{
'file': 'align-right'
}]
This is how i accessing ...
1
vote
2answers
36 views
Can't access a nested JSON object in HTML
AngularJS V1.6.4
$scope.aCourse["name"] is logged to console correctly, but in the HTML code nothing is populated into the screen.
$scope.getCourse = function(idd){
$http.defaults.headers....
0
votes
2answers
28 views
Put an object into an array in AngularJS
I am using ag-grid for an application and it only takes arrays to display the rows. I have an object returned from the API. This call always only returns 1 object. I want to convert the object into ...
0
votes
2answers
22 views
angular: show hide elements on button click
I am trying to show/hide elements on button click. Below are the code which i have written so far. I am facing trouble while writing Angular code due to lack of knowledge.
What i want to achive is -
...
0
votes
0answers
12 views
How to rewrite URLs without # on IIS with AngularJS?
I've used an URL rewrite in my web.config that will allow me to add URLs that do not include a # and allow me to view URL's such as http://somewebsite.com/name using "name" as a parameter to retrieve ...
0
votes
1answer
14 views
Receive parameter from angular controller to another controller with state.go
I send parameter using state.go like:
$state.go("root.detalleregistros", {tipo: "edicion", catalogoid: $scope.catalogo
});
Into controller I want to receive parameter I use:
...
0
votes
1answer
12 views
Angularjs view not showing, caused by factory
I have a problem adding factory functions to my AngularJs module.
When I add the 'authInterceptor' factory function to my home view module. The view isn't loading. But when I delete the factory ...
1
vote
1answer
17 views
Angular js local variable in different angular apps
I want a way to store a local variable that will remain there even if I changed the path ( The page) or the angular app. I tried $window.localStorage.set and get item and they didn't work as well as ...
0
votes
0answers
8 views
Generating JSON-LD with AngularJS
I am generating JSON-LD in a script tag in the body section using this solution in AngularJS 1.4.8. The directive is defined as
myApp.directive('jsonld', ['$filter', '$sce', function($filter, $sce) {...
0
votes
1answer
39 views
Angular Directive only works on one element at a time
I have the following angular directive. It uses a range slider to scroll a horizontal div of items. It works if applied to only one row. But if applied to multiple...nothing happens. The transclusion ...