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
What is the need for SystemJS in Angular2?
I am a complete beginner to Angular and Angular2. I am confused about how the workflow is structured. I have been looking at the sample project that is present in the Angular2 site.
Correct me if I ...
1
vote
0answers
8 views
loactio.search alternative to remove query parameters
I am new to angularjs and its a very simple question. I need to remove query params from the URL. So, I searched also but all the answers were pointing towards location.search (key,null) or something ...
0
votes
0answers
9 views
Angular 2 - Plug in dynamic data from API with parameter to HTML?
I'm fairly new to Angular 2, and I'm trying to find the best way to pass data to a nested component, call a method (REST API) using that data, and return the result into the parent HTML.
I understand ...
0
votes
0answers
3 views
'angular-fusioncharts' is not in the npm registry
I am getting this error when I try to include angular-fusioncharts in my package.json:
'angular-fusioncharts' is not in the npm registry.
1
vote
0answers
8 views
jQuery Rateyo rating plugin integration with AngularJS
I am trying to integrate the Rateyo plugin with AngularJS and getting problem in defined rating value from directive, following are codes:
Controller
var app = angular.module('myApp', []);
app....
0
votes
1answer
12 views
Using ng-model-options with ngModelController
I am trying to delay validation of an custom textbox component. I only want to validate the input on blur. The existing component does not use ng-model inside the input but uses the ngModelController ...
0
votes
0answers
10 views
Retrieve images against a word using Angulajs or Nodejs like Google Search
I want to retrieve images using angularJs or Nodejs but how Can I get this?
Example: I created a simple search button with HTML,CSS and AngularJs.
I am using Simple Angular Http GET Method:
$http({
...
0
votes
0answers
8 views
How to show success/fail message after getting response in iframe
I am using iframe for showing downloading the excel transaction files related to customer. Able to download the file, but I want to show the message in toastr, when file is successfully downloaded or ...
0
votes
0answers
14 views
Data combined in an object is not displaying on new scope view AngularJS
I am trying to send/display the data I am gathering on the service in an object to the next view when my button is clicked. I have the data storing properly into 1 object, but when the the button is ...
0
votes
0answers
12 views
How to reduce the Page load time of angular-meteor based web application in mobile?
I'm developing a web application using angular-meteor 1.x where accesses are almost always from smartphones. On average loading the css and js takes 3 seconds, but the application is only ready for ...
2
votes
2answers
16 views
Where do I create the array for a graph in an angular-codeigniter project
I have a project that uses Angular and Codeigniter. I have a graph which uses an array as input. I use the following code to build the array in Codeigniter controller:
function get_graph_data()
{
...
2
votes
1answer
22 views
ngModel undefined when using directive - Angularjs controller
My ngModel is undefined when using the ngPattern directive. If I remove ngPattern, the ngModel works as expected. See plnkr.
Note how vm.condition does not show when typing a value in the text box, ...
0
votes
0answers
9 views
ngCordova's inAppBrowser events not being listened
I'm having a hard time trying to implement the ngCordova In App Browser, as I followed the instructions to implement ngCordova in my project and also, I managed to add $cordovaInAppBrowser in my ...
0
votes
0answers
14 views
How to selectively disable Angular HTTP Interceptor
I have an HTTP interceptor that does ref counting on the active requests (+1 for request, -1 for requestError, response, & responseError). The ref count value is used to show/hide a loading ...
0
votes
0answers
3 views
UI-Calendar: Is it possible to jump to another month on the calendar, instead of pushing the arrow buttons?
I'm reading the documentation of UI-Calendar, wondering if I could have the calendar display 2 or month later (or before) by choosing the month instead of pushing the arrow multiple times.
If it's ...
0
votes
1answer
15 views
Angular js filtering an array by textbox input
I am really new to angular so this may be super simple but I can't seem to get it to work. I have an app that has a search field that needs to actively filter the results as a user types. All of my ...
0
votes
0answers
13 views
Uncaught (in promise): Error: Type Footer is part of the declarations of 2 modules:
Hi I have the following modules,
app.module.ts
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/...
0
votes
2answers
27 views
Redirect with Express using Angular ui-router
If i go to http://localhost:3000 to start my project and I'm not logged in, it will go to http://localhost:3000/login, but i want it to go to http://localhost:3000/#/login. is there any way to do ...
0
votes
2answers
12 views
AngularJS - How to pass name of NgModel as parameter in a function then access it with $scope
So, I am listening to the NgKeyup event, which fires a function that receives the current NgModel as follows:
<input ng-model="__name" ng-keyup="filterValue(this.__name, 'stringMax100')" type="...
-1
votes
1answer
15 views
how to write function to target specific variable for ng disable that inside ng repeat?
I'm trying to build todo list app in angular. When you add new item, it will add to input box(by default, i set it to disabled) inside the table and also add Edit link next to that input. Once i click ...
0
votes
2answers
23 views
How to deal with spaces in image source
I have a lot of images that unfortunately have spaces in their URL's. These are submitted through user input in another system and saved to a database.
I'm having a problem with angular's management ...
0
votes
0answers
5 views
Issue calling Servlet from AngularJS form
I'm using AngularJS to use Google Maps API and retrieve the coordinates of a location. I am using Servlets as the backend. When I click on a location and give the number of points to consider, I need ...
0
votes
2answers
18 views
Angular how to have multiple selected
I have this array of objects. that holds somethings like this.
[
{
id: 1,
name: "Extra Cheese"
},
{
id: 2,
name: "No Cheese"
}
]
im iterating thru the ...
0
votes
0answers
14 views
Create a webpage where tables and pie charts display quality of data from a database using SQL Querys
I'm needing to develop a webpage for an internal company portal where it displays the quality of a data-set from an SQL database in the form of graphs and history charts.
There is existing code ...
0
votes
1answer
16 views
Does ionic 1 angularjs code run on ionic 2?
I am migrating from Ionic 1.x to Ionic 2.x. In Ionic we used AngularJS 1.x.x.
Now I am mostly reusing the same code in Ionic 2.x and have not faced any issues. Is there anything that I should keep in ...
0
votes
1answer
14 views
I cannot assign my result of my api request to the view in AngularJS
This is only a portion of my code. For some reason I can assign vm.print to my response, it does not show. However, when I console.log() the response, it appears in the console. Please help. I can ...
0
votes
0answers
13 views
No 'Access-Control-Allow-Origin' header. Origin is therefore not allowed access. The response had HTTP status code 400
Currently I built API server at HTTPS together with mobile and website. The front-ends mobile(ionic web/mobile) with port 8100 is working with the API HTTPS. But when it comes to angular web with port ...
0
votes
0answers
10 views
angular/angular-material: replacing a HTML slider doesn't update its ng-model
$scope.$watch("checkbox", function(newVal, oldVal, scope) {
var newmax = calcNewMax();
var slider = angular.element(document.querySelector("#slider"));
var parent = slider.parent();
...
0
votes
2answers
24 views
Angular getting Syntax Error: Token ':' is an unexpected token while accessing URLs from JSON
I have the following json and I am pulling tweeturl from it
{
"name": "Lifehacker",
"handle": "@lifehacker",
"avatar": "images/lifehacker.png",
"time": "1h",
"tweet": "Workflow, the nifty ...
3
votes
0answers
14 views
Can I use a locator specific to Angular1 in Protractor code which is testing a hybrid app?
I am responsible for updating Protractor tests to run against a hybrid application which is in the process of being upgraded from Angular1 to Angular2. I wrote a complete test suite when the ...
0
votes
1answer
12 views
Accessing a ID from templateURL in angular directive
I have my directive which brings in a drop down of school
function campuses(){
return{
restrict: "AE",
scope:{
display: "@",
optGroup: "@",
...
0
votes
0answers
7 views
Kendo UI Chart DataSource with multiple children
I have a remote data and I am trying to build Kendo UI Chart's DataSource. The remote data represents a generic data model for most charts. The model goes like this,
model: {
fields: {...
-2
votes
0answers
23 views
Promises and selectors got me down
I have written a bit of code that is designed to figure out if a user is logged into any site. I don't understand the execution order of the code but I can't see how to fix it. Any insight is much ...
0
votes
0answers
11 views
crash in cordova app running on ios
A year ago, we've developed an app running on IPad. User can edit and scroll through multiple page forms. Within each page there are several input fields, labels and images. Now we are porting the app ...
0
votes
1answer
17 views
Window resize set variable in controller not working
In Angular, I'm watching for the window size and changing the 'device' variable on the controller if the widow width crosses a certain threshold:
// store reference of "this"
var self =...
0
votes
1answer
22 views
How to restrict an html input to positive decimal numbers up two decimals?
I am writing a angularjs app and am trying to restrict an html tag to positive float numbers with up to 2 decimal places.
code I have now...
<input type='number' min='.01' ng-model='threshold' /&...
0
votes
0answers
29 views
Angularjs Uncaught Error: [$injector:modulerr] - what am I missing?
Well, starting a MEAN project and sure enough I'm getting this common error msg. I've referenced old projects, various Stack Overflow flow questions and other resources out there including AngularJS ...
0
votes
0answers
20 views
Cannot modify variable out of scope [duplicate]
No matter where I place the variable. The changes do not reflect outside the loop.
$scope.getSubsByEmail = function(email) {
var userNotFound = 0;
var arr = []
SITES.forEach(function(site)...
0
votes
1answer
18 views
Filter data by user with angularfire
I'm using angular-ui-fullcalendar to show and edit events. Users can log in and have unique uid when logged in. I want to use this to distinguish events made by current user from other events. I want ...
0
votes
0answers
9 views
Spring security showing error console when login fails, how do I stop that
I have inherited an AngularJS app that uses Spring Security to handle login. I have a different app, and when a user tries to go to a non-authenticated page (i.e. reloading the app after their ...
0
votes
0answers
8 views
Using Browserify, how to register an Angular Component?
With the current strategy, at the root of each module I have an index.js file defining all of the Angular 1.X pieces are to be included within the application.
A very basic example is:
module....
0
votes
0answers
9 views
Why does invalid Angular code cause Webpack to freeze?
My Webpack build process was working just fine until all of a sudden it just stopped working. It would consistently freeze like so:
56% 118/153 build modules
I traced the problem to an accidental ...
0
votes
0answers
6 views
Angular ng-Animate specific CSS
I'm building an Angular ng-animate slider. And I will eventually add more items on the slides (i.e. a button, a subtitle, etc) but I want objects to come in at different intervals of time.
Generally ...
0
votes
2answers
20 views
getting data from angular modal service
First type questioner, long time reader. Newbie to Angular.
I am trying to create a popup modal for expanding a text box. (If you have ever dealt with Access, think shift F2). So, I have a form ...
0
votes
1answer
13 views
Mapping curl statement to $http.post
I am a beginner in angular js. I am experimenting with $http service in angularjs. I am accessing a web service. It returns expected response when using curl statement in ubuntu but is not succeeding ...
-1
votes
0answers
12 views
Best approach in simultaneous multi-developer AngularJS development in Salesforce
Currently, we have a visualforce page that references a zipped static resource containing all of our AngularJS front end. There's a lot of modules in that static resource like the items cart, the ...
0
votes
0answers
17 views
Button Call API Route to Redirect to External Site
I am trying to redirect to the Fitbit API authentication page when a user pushes a button. I have the route set up on my backend, but I cannot call the backend route from the frontend. This worked for ...
0
votes
2answers
33 views
how to set a var outside of an async function to use in $scope object
For the last two days I've been reading about promises, callbacks, and generators trying to figure out how I can set a value from a async function that I can then use in a $scope object.
I can't get ...
0
votes
0answers
11 views
Can't enter text on ui-select in angularjs 1.5.8
I have one ui-select as the following:
<ui-select multiple ng-disabled="!report.scenario" ng-model="report.students">
<ui-select-match placeholder="">{{$item.id}}</ui-select-match&...
0
votes
0answers
17 views
Angular 1.5 components data-binding
Week ago started learning Angular 1.5. Wrote this code.
I guess that in my components:
myapp.component('shoppingCart', {
controller: 'productsCtrl',
bindings: {
'selected': '=',
'priceOutput': '...