Tagged Questions
AngularJS 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 single-page ...
0
votes
0answers
3 views
HTML Page Select All Angular issue or NWJS issue?
I have an issue where as I navigate around my HTML Angular app, when the page renders it renders with everything on the page "selected".
I am using the latest Angular 1.x version, along with Angular ...
0
votes
0answers
4 views
Exception when exposing $window.print on angular scope
I'm exposing $window.print() on scope like so:
$scope.print = $window.print;
However, this results in an exception:
angular.js:13642 Exception message: Illegal invocation
I need to call print ...
2
votes
0answers
8 views
Calculate total time user has done activities on page like mousemove in jquery
Please help me. I have to find the total time user has done activities on page like mousemove, keypress etc. I want to get the useful time that page has been used.
I have made some of the code which ...
0
votes
0answers
2 views
Ionic Angular Controller Execute Twice
I have made an ionic app but the controller execute twice.
My Stateprovider
config(function ($stateProvider, $urlRouterProvider) {
$stateProvider
.state('index', {
url: '/',
...
0
votes
0answers
13 views
How to call controller function from html?
Hi I am very new to AngularJs and to HTML, Javascript and CSS so please try to explain your answers for dummys.
So, for some reason the function "updateFilterTerm" does not get called. The variable "...
0
votes
0answers
10 views
display rows based on clicking on particular nested json array?
property in homepalGroupProp.properties
my json data :
property=[{unitname : 1bhk, data:[{}]] }, {unit name : 3bhk},{}]
like this {
"UnitName": "3 BHK",
"data": [
{
...
0
votes
0answers
9 views
'Failed to instantiate module ng due to: this is null' when running when running app
I am trying to create a mobileFirst 7.0 app using
Ionic 2.0.0-beta.20
cordova 6.3.1
and angular v1.5.3
When i try to open my app in the simulator, I get the following error:
Uncaught Exception:...
0
votes
0answers
2 views
How can I use Data-Providers in my e2e Tests using ng-Scenario
Questoin in Different Words: How can I use bdd-Using with ng-Scenario?
I am new to angular tests and its framework. Although I have succeeded in running unit tests for my angular applications with ...
0
votes
0answers
5 views
HIghcharts Legend Symbol Getting out of graph Canvas
I am using highcharts scatter chart and i want to display one specific data point legend more wider than other data points which i have implmented but the problem is when that point comes on x-axis or ...
0
votes
0answers
6 views
How to create Tree-View in Angular 2 using Typescript?
What should I do how to create Tree view in Angular 2 using Typescript?
I am trying to find out on google but till-now not get any working example etc.
Can anyone please share me example to achieve ...
0
votes
0answers
7 views
Angular ui-sortable not working on mobile devices
I'm currently working on an AngularJS app that contains some tests. In some of them I have a list that the user has to order correctly by dragging and dropping.
I'm using angular-ui-sortable to ...
0
votes
1answer
14 views
Angular inline Filter “controller side”
I have a selection of categories that are returned after selection correctly
to a Html view by {{cat}} would display Comics if Comics was selected from a list
$scope.selectCategory = function (...
0
votes
0answers
11 views
Displaying the elements in an array twice using single ng-repeat
I have the code in below link.
http://jsfiddle.net/96dgL1ga/
As you can see, I have used the below code two times to display the output.
<tbody>
<tr ng-repeat="track in ...
0
votes
0answers
20 views
Angularjs Array indexes not getting displayed
This is probably going to be a dumb question but I am stuck too long on this piece, and a fresh pair of eyes could maybe see the issue.
I have two arrays one that holds static data and another that ...
0
votes
1answer
9 views
Angular 2 Attribute Directive adding css class
I am currently learning Angular 2. I understood how to use the angular renderer to set an ElementStyle, but now i would like to use the Angular renderer function
setElementClass(renderElement: any, ...
0
votes
0answers
6 views
Unable to stop the downloading a file when the array is empty using ng-csv
I have a scenario that I want to export an array of json data to csv file by checking a condition like array is empty or not. If the array is not empty I am getting the file with data. But if it is ...
0
votes
5answers
29 views
adding properties to an existing object inside an array
I am picking an array with few object on it from an external file.
Using:
app.controller('mycontroller', function($scope, $http) {
$http.get("file")
.then(function(response) {
$scope.lols = ...
0
votes
0answers
18 views
Use the pipe character in an Angular Filter expression
i would like to use the '|' character in an Angular 1 Filter expression lie
{{ ctrl.items | map: 'name|id' | join: ',' }}
Is there some kind of character escaping i could use? I know that the | ...
0
votes
1answer
16 views
req.body is Empty on angular file-upload, node js
so I've been working on uploading an excel file then save it to the database. so this is the form.
<form method="post" enctype="multipart/form-data">
<label class="uk-form-file md-btn md-...
-1
votes
0answers
10 views
How to consume RESTful Basic Auth service in angularjs
I've restful web service which has basic authentication(Base 64) which works fine in restclient, but the problem is how can i consume that service in angular
I've tried
var head = {
'Accept':...
0
votes
1answer
30 views
ngif is not working properly
I want to use ngif to check some int that comes back from a function, and if its bigger then 0 I want to present it, so this is what I did:
<div>
<b>Name:</b>{{person.getName()}}&...
1
vote
0answers
5 views
Geofire query and filter some data (server-side) to limit bandwidth usage
I would like to know if I used Geofire correctly. My big problem is bandwidth usage with Firebase and this Geoquery.
In my app, I would like to collect in a radius of xxKm all the "demandes".
With ...
0
votes
0answers
2 views
Plivo events not registering
I created sample application using plivo websdk in angular js through which i can recieve call on web browser.
I initate the call using my node server which works perfectly fine.
when i integrated ...
0
votes
2answers
14 views
Sending a Post request in Angular 1.x via factory
The post request url should be updated in the following format.
https://www.example.com/api/one-push?type=json&query=push&title=____&url=____&tag=___
<form ng-submit="submitUrl()"&...
-1
votes
1answer
28 views
How to perform Add, Edit and Delete operations for JSON data using AngularJS?
I have the json file:
test.json:
{
"MyTest": [{
"Main": {
"static": {
"name": "TestName1"
},
"dynamic": {
"testkey01": "...
0
votes
0answers
10 views
Datatable is not getting refreshed in angularjs
I have a bunch of data from my server call so i decided to use datatable using angularjs. While implementing the i am getting 10 records at every pagination call.
But the problem is while clicking on ...
0
votes
0answers
24 views
Spring MVC + AngularJS common questions
I am developing a simple Spring MVC app and intend to use AngularJS as front-end, with Spring REST web-services to pull data from the back-end.
I have been reading a number of tutorials but I still ...
-1
votes
2answers
34 views
How to read data from a table and form an array and post it?
I want to get data and display it on a table then modify the "availability" and again post it to the server by forming an array of object. Right now the way I am doing it I am able to get the data but ...
0
votes
0answers
11 views
How to extract only content of value with ng-copy in AngularJS?
i have the following code:
HTML:
<input id="partnerwebapikey" type="text" class="form-control" readonly ng-copy="copied=false" ng-model="webapi.apikey">
Controller:
$scope.webapikey = {};
$...
0
votes
1answer
5 views
Refresh with localStorage and Multiple Logins
I am developing a angular app in which i need to give refresh ability to user. Using the localStorage i can get login details of the user. But if i login with another user in new tab then it override ...
2
votes
4answers
21 views
Multiple steps to process data, what's good pattern for JS/Angular?
Imagine we have few steps to process data. First we download it, then we do smth else and so on many times. Code in C# it would look like several lines - one for each step.
As I understand now, in ...
0
votes
1answer
7 views
angular/ionic iframe issue on ios
I have an issue with my ionic app on iphone. Ionic writes this into the index.html:
<iframe src="gap://ready" style="display:none;">...</iframe>
The console output of the app loops this ...
1
vote
1answer
16 views
How do I show a dropdown/dropdown list/select list inside of a angular material's dialog's content?
I am pretty new to AngularJS and I am using Angular Material and Dialog precisely the Custom Dialog to show a popup dialog.
Now I am able to show the Dialog, but the problem is that I am not able to ...
0
votes
0answers
7 views
I want to do a karma test if a table appears when i click on the tab
'use strict';
describe('Controller: TestCtrl', function () {
// load the controller's module
beforeEach(module('MapApp'));
var TestCtrl, scope, httpBackend;
// Initialize the ...
1
vote
1answer
21 views
how update model value when input value is changed in Angularjs2
I want to change model value from input tag but I don't know how to do it in best way.
here is my code that I have done for that.
<div *ngFor='let l of list'>
<input #temp [value]='l....
0
votes
1answer
12 views
How to create factory in angular of an existing service
I am learning angularjs and reading articles on service and factory. One example provided on this ARTICLE is this Service Fiddle.
While reading this I am trying to convert the service into factory, ...
-1
votes
0answers
10 views
Serial Number | Soft Delete in Case Of Angular JS
I am using AngularJS and Firebase in my project. I have used soft delete by setting the value of a key to false when it is deleted but now {{$index+1}} is not showing me the right serial number of ...
0
votes
2answers
31 views
JS: For loop continues to iterate after condition is false
Does anyone know what would cause my for loop to continue after the conditions are met? I would post the entire file, but it is quite large. Here are the loops:
var depKeyArr = angular.copy(Object....
0
votes
0answers
10 views
Destroying connection when $destroy in SignalR
I have a page running SignalR, Angular, and Typescript. When the current $scope gets destroyed (like a page change), I try to disconnect the client from the SignalR server:
Controller.ts
$scope.$on("...
0
votes
2answers
14 views
AngularJS duplicated element for 1 second
I have my login form that contains a box to display the error message
<div class="ui negative message" ng-if="vm.message != ''">
<span ng-bind="vm.message"></span>
</div>
...
0
votes
0answers
9 views
Highcharts SVG element not updating. Custom Freeform Drawing inside Highchats?
I am using highchart for rendering graphs and also using the renderer in order to draw a custom line inside the chart. I want this path to be recalculated and repainted whenever there is a data change....
0
votes
1answer
19 views
passing JSON data from one controller to another controller angularJS
i want to pass the data from one controller to another controller, i am
Getting Data in $scope.imagegallerys variable and i am able to set the data into SetJson();
(1) this is my controller1
...
0
votes
0answers
6 views
ngTransclude creates Scopes it does not delete in ngRepeat
I'm trying to create a list where I repeat items in a collection from component ctrl, and the repeat (<li> in this example) should transclude its innerHtml from a slotTemplate.
Like so
(list....
0
votes
4answers
23 views
getting value of inputs created by ng-repeat
I created a radiobutton input but struggling to get the values of selected inputs.
this is the radiobuttons input I created
<ul ng-repeat="item in riskModel">
<li>
<input ...
-1
votes
0answers
34 views
How to add a minutes in a loop
We have to increment the time by 30 minutes continuously till the termination time given by me with the help of loop
My code is like this
$scope.TableOpentime = "10:00"
$scope.TableClosetime = "12:00"...
0
votes
0answers
7 views
Clear search icon is not appearing on chrome and firefox in typeahead
Clear icon is appearing in Internet explorer but not in Chrome and firefox,
here is the link, u can check on internet explorer and chrome both -
https://codepen.io/joe-watkins/pen/EagEWv
HTML -
...
0
votes
0answers
11 views
Get current url of iframe in controller using angularjs
I have to get current url of iframe in controller in angularjs. I am using Ionic2 and angularjs.
I have made a webview using iframe and in webview at some page i have need to control over again to app'...
0
votes
0answers
4 views
Adding properties to local ndb datastore
I'm building a fullcalendar webapp and I'm using a modal in my angular setup but it's giving the error below when I click on a date box on the calendar to pull up the modal. What could be wrong? I'm ...
0
votes
2answers
24 views
How to get table row data using check box in Angular.js
I need one help.I need to get all checked data from the table row using Angular.js. I am explaining my code below.
<tr ng-repeat="gl in galleryDatas">
<td><input type="checkbox" name=""...
0
votes
0answers
17 views
Unable to POST file to WebAPI using Angularjs
I am building a Mobile App using Apache Cordova. In my app, I need to post a file to the server. But I don't want to post the file through <form enctype="multipart/form-data" method="post" action="#...