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
24 views
Is SVG resizing this hard ? What am I missing?
I am trying to write code that resizes an SVG overlay on top of an image. The server I am working with returns both the image and via an API, a list of polygon points I need to overlay on top of the ...
0
votes
0answers
14 views
angular2, how to async load a component and config new router
i am using javascirpt, not typescript.
has below code files:
app/other.js
(function (app) {
app.OtherComponent = ng.core.Component({
selector: 'other',
template: '<div>...
2
votes
0answers
10 views
downloading an excel file from Node.js back-end using angular.js front-end
I am trying to download an excel file from a node.js server.
when I open the requested file on the server side it is just ok, but when I am opening the downloaded file on the client side it is ...
0
votes
0answers
9 views
POST service with Datatable java
I have an requirement to submit a full datatable data into database using angular js.
populating data through angularjs and code given below
vm.dataTableInstance = $('.datatable-basic').DataTable({
...
1
vote
0answers
16 views
Best practices when dealing with angulars and tag attribute change (and DOM)
Premise: I'm new to AngularJS and trying to learn it. In the following example I'm monitoring text lenght and cursor position in a textarea. It does work, indeed.
var app = angular.module('myApp',...
2
votes
0answers
21 views
Echoing HTML select value not giving same value set
I have this html select value that I used with AngularJS in building. Anytime I print the value selected from html in php, I keep getting a different thing. Eg. I selected Computer from the select ...
0
votes
1answer
23 views
Error: Failed to instantiate module ui.router
I have installed angular-ui-router by doing npm install angular-ui-router --save-dev but i am getting errors
Index.html:
<!-- bower:js -->
<script src="bower_components/jquery/dist/jquery....
0
votes
1answer
14 views
Method not allowed in angular with laraval for PUT method
This is my form
<form class="form-horizontal alert alert-info" id="editForm" ng-submit="updateComment(currentComment)" hidden>
<h3 class="text-center">Update Comment Details&...
0
votes
2answers
24 views
UI Router template is not injected but state changes Changes
I am trying to make a nested views, here is the plunker https://embed.plnkr.co/oRMnMW4QoWwhSkm9maHf/. The state changes but the template not changes.
Can anyone correct me what have I done wrong
...
0
votes
0answers
17 views
Status code 0 in restangular response
I am using Restangular for requesting spring java server from angular.I want to intercept the requests if the response status is 401(unauthorized) then it should redirect to login page.
Here is the ...
1
vote
1answer
15 views
Remote Debugging can't be remove from Ionic App after Release on Play Store
I am using Ionic to build hybrid application.I already made my publishing version and upload on Play store. But when I inspect that app after downloaded from playstore it show all the code of that in ...
0
votes
0answers
12 views
NativeScript with ApolloClient issue
I created a standard app with tns create project --ng which ran fine (and adding platform android)
I also wanted to use graphQL so added apollo-client and graphql tag:
npm install apollo-client --...
0
votes
1answer
11 views
Need some practical example of “and.callThrough” in Jasmine
I am learning to implement karma & Jasmine in AngularJS and I am going through some of its examples to understand it better.
I am little bit confused about callThrough.
Please correct me if I ...
-1
votes
1answer
42 views
angular.element() cannot find DOM element
I have a table of users that is populated dynamically from a Firebase database:
<table id="users">
<thead>
...
</thead>
<tbody>
<tr ng-repeat="...
0
votes
1answer
16 views
Developing application that represents same screen across multiple browser windows of same machine using AngularJS
I have to create one application that represents the same screen(sharing the state of the view/screen) across multiple browser windows of same machine using AngularJS.
During my analysis I found ...
0
votes
0answers
13 views
AngularJS asynchronous templates loading
I'm trying to deploy fully-featured angularjs application to google docs sidebar. I'm almost convinced its possible :).
I can't overcome the problem of pre-population of $templateCache with my views ...
0
votes
1answer
38 views
Angular Routing not working
I am trying to implement the routing feature of AngularJS but something seems to be wrong when I try to navigate to the pages as I feel my routeProvider.when() is not working correctly though ...
1
vote
1answer
24 views
Angular Dynamic Search of words from a JSON file
I am implementing a search in Angular whereby a json file is uploaded dynamically and I want to make it possible for a person to type some words to be searched against the uploaded json file.
My ...
0
votes
0answers
21 views
How to use filter search in angular chart?
I'm using angular chart in my ongoing project. And I want to use a dropdown filter search according to months in angular chart for user convenience. Is it possible?
Here's my code:
app.controller('...
0
votes
1answer
26 views
AngularJS ng-change does not work when get request with Ruby on Rails 5
I'm using ...
Ruby on Rails 5
AngularJS 1.3.20
Chrome or FireFox Browser
It seems ng-change event does not work, when I request get method like link from other page. But when I user POST request to ...
0
votes
0answers
17 views
Angular UI Router transition error
"angular 1.6.1", "angular-ui-router 0.3.1", All ui views changed/worked correctly but i'm getting the following error in my console window, i don't know why.
My HTML code is
<!DOCTYPE html>
&...
1
vote
1answer
16 views
Using params in ngResource post URL
I'm working with a FosRestBundle API, and I must pass params in an url post resource to perform an operation.
The post resource in FosrestBundle is something like this :
api/readQuestion/{contain_id}...
0
votes
2answers
24 views
ng class using modulus in angularjs
I used $index with modulus
<div ng-repeat="day in days" ng-class="{'col-xs-2':$index % 3 === 0}">
<div class="days-group">
<input id="{{day.value}}"type='checkbox' value="{{...
3
votes
3answers
52 views
Angular $scope data convert to date format
how to convert $scope data to date format?
{{book.take_time | date: 'HH:mm'}}
$http.get("../api/book.php").then(function(response) {
$scope.book = response.data;
});
inside book have ...
-1
votes
0answers
46 views
Issue while installing angular translate using bower
I know that we can't install angular translate with angular 1.6 version as per the bug mentioned here. I am facing issue with 1.5 as well. Can you please suggest if I am missing something?
So far I ...
0
votes
0answers
31 views
Angular-Ui-Router state changes but template URL doesn't load for nested states
I am working on an a requirejs + angularjs project with ui-router . I tried to implement nested views but only the state changes but the template URL doesn't load.
My route-config.js
.state(ROUTE....
0
votes
3answers
26 views
ng class condition failed with modulus
Initially I have this kind of hardcoded HTML.
<div class="col-xs-2">
<div class="days-group">
<input type="checkbox" id="Mondays" value="1">
<label for="Mondays">...
0
votes
0answers
7 views
Why doesnt `lb-ng` create vendor files as per LoopBack tutorial?
I'm following the AngularJS LoopBack tutorial.
It says that the lb-ng command does all the "heavy lifting" for generating the AngularJS boilerplate code. Yet the tutorial instructs the developer to ...
3
votes
3answers
37 views
ng-repeat display key value in view
http://jsfiddle.net/qq2L34eb/1/
I want to display Monday but the value attr is equal to one using ng-repeat.
$scope.days = [{
"Mondays": 1
}, {
"Tuesdays": 2
}];
But I got the entire object ...
2
votes
1answer
23 views
How to pass data from function to angular controller scope
I stuck at this problem for days.
I use angular file upload to upload image.
I can upload the image to the server, and I can get the response image url from the server back.
But I can't get the ...
1
vote
2answers
42 views
push checked checkbox value with multiple ng-model
I have days option for user.
My expected output will be, when a user click submit
if monday and tuesday is selected it should be [1,2]
if weekdays is selected it should be string 'weekdays'
I have ...
1
vote
1answer
29 views
CORS Error on browser back button
I have a ASP.NET Web API 2 Service. And multiple client(angular) applications talks to that service. the applications and the service are published on different sub domains, like the following:
...
0
votes
0answers
16 views
Unable to determine if my Angular HTTP application isn't correct or why my data won't display
I'm building an AngularJS get request using multiple parameters. This URL string
http://api.companychanged.com/ads/apisearch?publisher=847348123749&format=json&q=python+developer&l=long+...
1
vote
1answer
26 views
Default selected option doesn't work in angularjs
I have a view
<select ng-model="selected_student" class="form-control">
<option ng-repeat="obj in students" value="{{obj.id}}">{{obj.name}}</option>
</select>
I am doing ...
0
votes
1answer
17 views
Using Type Script w/ ASP.Net Core build errors from .xproj file
I'm working on a new ASP.Net Core project, and I've followed a blog post on setting it up with Angular 2 and Type Script. As soon as I add a Type Script file to my project, I'm given the following ...
1
vote
1answer
20 views
Accessing $state outside angularjs
I have an angularjs application. The app is supposed to be a hybrid mobile app for android and iOS. I have a JavaScript file in the project which is not a part of any module. In that JavaScript file I ...
3
votes
1answer
40 views
hide show custom filter in ng-repeat that uses table
How can I use custom filter to hide inventory column of color pencil special on date 2-10-2017 in the view?
color pencil special's inventory is depends on color pencil's inventory which in this case ...
0
votes
0answers
14 views
Angularjs – Warn on unsaved changes in Master Detail Scenario
I need a solution to warning about unsaved changes in a Master- Detail scenario. I was able to implement a solution by Sam that he created in September 2015 (http://www.samjhill.com/blog/?p=525#...
1
vote
1answer
29 views
Serialization with c# code to get a json string
i need some help in C#. my existing js code has a json string like this
self.default = {colname, 'desc'}
this is hardcoded today.
js code which reads this json is as below
var a = Object.keys(...
0
votes
2answers
19 views
Type string to search from an array of String, but what is causing to require whitespace or the second letter to begin with?
I am trying to implement a search functionality with angularjs. I have an array of country. And when the user types something in the input box, it should display the country that matches the string ...
0
votes
0answers
11 views
I need a dynamic form ng-model with controlled by other form
HTML Code :
Controller Form :
<table width="100%">
<form name="textbox" id="textbox" action="#" autocomplete="off">
<tr>
<td&...
-2
votes
0answers
28 views
A form with two buttons [on hold]
A form has two buttons.
A submit button, and a second button (that is in the form just to align it with the submit button).
How to ignore the required fields when click on the second button?
...
2
votes
0answers
14 views
While bootstrapping a hybrid angular 1 + 2 application, how do you initialize the angular 1 injector?
To recreate the issue, I forked the Angular Quickstart plunker.
I have this simple angular 1.x module:
'use strict';
angular.module('testModule', [])
.factory('testService', function($q, $log, $...
0
votes
1answer
28 views
Loopback AngularJS Get _id field from MongoDB Collection
Loopback AngularJS SDK and Get Data
I'm newer with Loopback.js
I have a lot of collection in MongoDB and I thought index field is the best way to relationship with two collection.
For example,
I ...
0
votes
0answers
34 views
list of model binding angularjs
I want to bind data dynamically in angularJS model
But all numeric data are0 or null
I use the code like this in another place and worked well but not working now
The problem is my result is ...
0
votes
0answers
26 views
AngularJS Display JSON data in view [duplicate]
In my module I have a service that calls $http and gets an Array of objects,
function MenuSearchService($http){
this.getMatchedMenuItems=function(searchItem){
var ...
2
votes
1answer
28 views
Waiting until $resource finished to load in my controller before continuing
I'm building a rest api with fosrestbundle and I manage the frontend with angular and Twig template. One on my url address looks like this :
http://mywebsite/myroute/idContain
When I load the url in ...
-1
votes
0answers
21 views
how to use $scope.bal () to repeat same calculation
I've tried my hardest to find the solution before posting here, however my time restraints are very tight and I have a last and final chance to re-submit this app project before Sun/Mon, so I cannot ...
0
votes
0answers
19 views
Angular Controller As Scoping Issue [duplicate]
When I run my app the model binding works. However, after calling my service post method and setting the value of this.payload to the value of response.data and calling bind, my view no longer ...
0
votes
1answer
26 views
IIFE's in angular controllers
I'm running into errors as a newbie in angular 1.5 and lower. I'm practicing with several online courses and all are using different versions of angular 1. I'm trying to stay close to John Papa's ...