Tagged Questions
AngularJS (a.k.a. AngularJS 1) is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Whatever (MV*) capability and reduce the amount of JavaScript needed to make web applications functional. These types of applications are also frequently known as ...
0
votes
0answers
5 views
How to select an ng-option through ng-model
I have a table which I am populating using ng-repeat. For examples sake, let's say I'm creating an evite-type mock site and the table is showing everyone that has responded. Each row has a radio ...
0
votes
0answers
7 views
Load angular app through dynamically
I came accross this situation where i need to load the whole angular application from another script file. The idea was to get the version of the application from the backend and as i get the version, ...
0
votes
0answers
5 views
Cannot Delete or Edit drawn boxes in leaflet
I am currently using angular with ui-leaflet. When I attempt to delete a drawn rectangle, the "finger" icon that usually appears does not. This is also true for the edit function. In the case of ...
-1
votes
0answers
12 views
can not build application for production
After adding ngrx/store to my project I can not build my application for production. All works fine in development mode (ng serve) and even works if I use ng build. But if I use ng build --target=...
0
votes
0answers
14 views
AngularJs - Ng repeat array
I can't understand why the next code is not working.
<div ng-repeat="r in reservations" ng-init="new = r.some_code">
<div ng-if="old == new">
<p ng-init="sum = sum + r.cost">{{r....
0
votes
0answers
4 views
How can I unit test a factory WITHOUT a controller? Angularjs/ngMocks
Every example I've run across when unit testing involves a controller.
I have unit tests within the controller but they are just testing that the service method is called when I expect it to. I ...
0
votes
0answers
25 views
How to detect form editing so that will update that only on database?
I am using one form which has 50+ fields . I am done with insert, select and delete of the record but I am confused with update record because If user is updating one or two fields out of 50 then ...
0
votes
1answer
5 views
Systom config js Angular 2 problems with installing modules. Explanation
I have recently started to develop with Angular 2. There are a lot of tutorial out there. But one thing I cannot still understand is systemjs.config.js.
I understand why is it used, and what is the ...
0
votes
0answers
7 views
Angular4 - Unable to access entry components from lazy module
In my App Component, I initialized a dynamic modal which renders a dynamic component for the body. I've already added "Selected" entry components I need for the App component.
What I am trying to do ...
0
votes
1answer
17 views
Textarea in AngularJS not rendering HTML
I have a textarea in my Ionic's App that is used to create a new message, or to edit a message. My problem is when I try to edit the message, the textarea doesn't render the String as HTML tags.
I've ...
0
votes
0answers
16 views
Unexpected behavior of $parent.$index in AngularJS
I have a code like this :
<div ng-repeat="colum in columns">
<ul>
<li ng-repeat="list in column" id="{{$parent.$index}}">
</li>
</ul>
</div>
...
0
votes
1answer
14 views
Change colour of text within angular array
We have some nested data which we are are displaying in a table.
One of the table cells is the contents of an array which is turned into a single string using the answer to this question Using comma ...
0
votes
1answer
16 views
Angular - ng-class working on td but not on tr
The following HTML is used inside a ng-repeat.
This works:
<tr>
<td ng-class="info.lastInMonth">{{ info.date_formatted }}</td>
...
But this doesn't work:
<tr ng-...
1
vote
0answers
15 views
Empty fields in drop-down list
Here is the .js file which load the right json data, from an API
(function() {
angular.module('application', [])
.factory('Forecast', ['$http', '$q', function($http, $q) {
...
0
votes
0answers
11 views
How to get particular value from json array object
I want "ServiceName" from the json array object.And this is my code and i am getting entire object values in "$scope.questions"
$scope.complete=function(){
console.log($scope.questions);
...
0
votes
0answers
4 views
Angular autocomplete md-selected-item-change not working
I am new in angular material i have created angular autocomplete i want to select changed item but md-selected-item-change event not working properly.
I have written Delhi in textbox and select it ...
0
votes
0answers
7 views
Validation on md-chips with md-autocomplete
I am trying to build a page that uses angular material and uses elements such as md-chips and md-autocomplete.
I want to put a validation on this md-chips so that an error message will appear if ...
0
votes
0answers
10 views
Default value not displaying for Input type number in *ngFor in angular 2?
I have added default value for input type=number but default value was not displaying in front end please go through the below code and help me out on this thanks in advance
<tr *ngFor="let cart ...
0
votes
1answer
20 views
Min-max date issue in date-time picker
I am using smDateTimeRangePicker to show a date-time picker dialog.
Along with this, I am using moment.js for date manipulation. For the date picker, I set minDate and maxDate in my controller as ...
0
votes
0answers
29 views
Express and Angular routing
i'm learning the MEAN stack doing a simple auction app.
i have some problem understanding how express and angular routing work together.
My node server, is serving this file, app.js
var express ...
0
votes
0answers
13 views
how to generate serial number 1,2,3,etc.. using datatable anuglarjs?
I am create small demo for listing user list using datatable angularjs.user list working very well in demo.now i want to generate serail number 1 to n..in table 1 to 100 records is store then want to ...
1
vote
0answers
10 views
How to get ui-router state parameters from resolved data in angularjs
How do I get parameters for a state from a service?
I have this state:
.state('cashbox.list', {
title: 'Cashbox',
url: '/:from/:to?q',
templateUrl: '/cashbox_list.html',
...
1
vote
2answers
24 views
how to render angular2 html page after rest webservice response comes
I can get rest webservice response and console it in screen without any problem. But unfortunately, in the page I can see initial value of the result of the werbservice call. What I need to do render ...
1
vote
1answer
11 views
unit test this.$onDestroy in angular>1.5 / es6
using angular 1.5 / es6, I have the following code that I want to test :
this.$onDestroy = function () {
this.$interval.cancel(someIntervalTimer);
};
I cant find out how to trigger ...
0
votes
0answers
24 views
Function isn't called with responsed data
Hello I got a weird problem... I lost almost 2 hrs and I have no idea why it doesn't work.
It should sum all values for every dept where username = name choosed by select and where date = date ...
0
votes
1answer
13 views
Angular 2 Synchronous File Upload
I am trying to upload a file to web api which takes the file as byte array using angular 2 application.
I am not able to pass the byte array from angular 2 page to web api. It looks like the File ...
-1
votes
0answers
3 views
Where to set maximumImageFileSize of angular-summernote?
I need to limit the file size of uploaded image through angular-summernote. This github issue says we need to specify size in bytes for 'maximumImageFileSize' in its settings.js. Though even after ...
0
votes
2answers
21 views
How to Convert array of arrays into JSON using AngularJS?
I have a variable that is returning an array of arrays, with each item in each array in double quotes.
var arrayOfArrays = [
[ "Name", "Age", "Address" ],
[ "A", "43", "CA" ],
[ "B", "23", "VA" ...
0
votes
1answer
20 views
Cannot get value of property based on property name using _.map
I have an app that uses MongoDB as database and I'm having a hard time pulling property values from array variables. I used a _.forEach to check if they have data and it returned positive, however ...
0
votes
0answers
9 views
Google Maps API, direction with 500 waypoints
I have array with about 500 waypoints(with lat, lng) which are extracted from gps route, and i want to show it on google map, but google maps cant create direction/route to look like gps route with ...
1
vote
0answers
20 views
To show slf4j logs on prompt as they appear
I am working with AngularJs spring boot application. For logging purpose sjf4j has been used. It working fine and writing logs to log file.
Now I want logs of some process to be shown on a prompt i....
0
votes
0answers
15 views
Response for preflight has invalid HTTP status code 403 + angular 2 + Java Spring boot
I am making an API GET call to the server with following headers in angular 2. My angular 2 code is as follows:
let headers = new Headers();
headers.append('Content-Type', 'application/json');
...
0
votes
0answers
16 views
How to test controller with template provided by state from ui-router
Configuration for ui router:
$stateProvider
.state('search', {
url: '/search',
views: {
content: {
templateUrl: 'scripts/search/search-...
0
votes
0answers
18 views
303 response not redirected due to Javascript error
I'd like to fetch data from a webservice, which is done by:
$scope.data = itemsApi.search(null, $scope.filterCriteria);
The itemsApi is defined like this:
angular.module('rootApp')
.factory('...
-1
votes
0answers
5 views
.Net core unable to install “DotNetCore.1.0.0-VS2015Tools.Preview2” installation Vs community 2015 and updating (3) it
I want to create environment of .net core for this I follow the instruction of adam freeman.
(1). firstly installed Vs community 2015
(2). update it
(3). then when run the "DotNetCore.1.0.0-...
0
votes
2answers
22 views
How to access value in directive
I have directive as follow :
directive('checkKey', function() {
return {
restrict: 'A',
scope: {
min: '='
},
link: function(...
0
votes
2answers
18 views
ng-bind-html not working inside ui-view
I am developing an angular app with angular 1.4 and ui.router 0.2.8. I am using ng-bind-html to print error messages while form validation.But it is not working.
In my controller
$scope.nameError = $...
0
votes
1answer
25 views
How to use var from angular in jQuery [duplicate]
I have this var room_price and I need to use that variable in jQuery. Is there any way to do that.
$http({
method:'GET',
url: ''
}).then(function(response){
...
0
votes
1answer
25 views
How to assign dynamic variable to attribute using Angular.js
I am facing some problem.I need to assign the dynamic value to attribute using Angular.js . I am explaining my code below.
<div ng-repeat="mul in mulImage">
<a ng-href="attchImage{{$index}}...
0
votes
0answers
16 views
Deleting a dynamically creating a div by clicking on cross icon [duplicate]
How can i delete the dynamically created div that has cross icon. Clicking on cross icon div should be deleted. How can i delete the created Div
This this the link https://jsfiddle.net/...
0
votes
1answer
35 views
AngularJS a directive for input type = number that watches for changes
the context: I am developing a mobile version of my app. I want a user to be able to enter numeric fields with their numeric keybord of their phone/tablet. AngularJS makes input fields with type = "...
0
votes
1answer
10 views
How to send req.flash messages from node to Angular.js
I'm following a tutorial on how to set up authentication with nodejs and passport (http://scotch.io/tutorials/javascript/easy-node-authentication-setup-and-local)
The tutorial has rendering templates ...
0
votes
0answers
14 views
Google chart in angularjs ng-repeat
I am new to AngularJs and Google charts. My requirement is to show Google charts dynamically in ng-repeat for each li.
<li ng-repeat="ques in surveyquestions">
<label for="{{ques['...
-1
votes
1answer
20 views
Angular custom directive not working in 1.3.0
This is my fiddle
This fiddle works with angular **1.1.3**. But not working with 1.3.0
1
vote
2answers
37 views
Angular 2 import Http failed
Dear Stackoverflow community,
I'm tyring to do a http-request to get some JSON data.
import {Injectable} from "angular2/core";
import { Http } from '@angular/http';
import {Trainer} from "./...
-2
votes
0answers
14 views
What is the purpose of using anonymous function inside a controller?
While creating a controller,we will use an anonymous function along with some parameters inside that controller.I want to know the actual purpose of using that anonymous function inside a controller.
0
votes
0answers
11 views
AngularJS table is storing only the first row when trying to save it n Mongodb using Mongoose
I have to save entire angularjs table into MongoDB using Mongoose using MEAN STACK......
But i am able to save only the first record in the table how to push entire table content into mongoose where i ...
0
votes
1answer
17 views
Socket programming MEAN stack, express app on port 3000 and angular app on 8000
I am trying to make an socket application using MEAN stack and socket.io. I want to setup my express app on one port(say 3000) and angular app on another port(say 8000).
Later I will try to move my ...
0
votes
3answers
33 views
how to get component of JSON String which returns by webservice request
I am using angular2 typeScript to get json returned from webservice.I can get the value from WebService by calling get but I can not get component of JSON.For instance I want to get status of the ...
0
votes
0answers
12 views
How can I use Laravels blade view alongwith the angularjs
I am working on a project, which is fully laravel based. Meanwhile my project requirement is changed and Client wants to have angularjs based financier's frontend.
My question is how can I convert ...