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
4 views
#Nodemon module colour is different
What is the difference between the following ways of connecting to MongoDB server?
MongoServer mongo = MongoServer.Create("mongodb://192.168.11.237:27017")
and
Mongo mongo = new Mongo("mongodb://...
0
votes
0answers
2 views
Setting button/select options from Salesforce quicklist options
I would like to have two menus, where the choice in the first menu sets the options in the second menu. This is to be done on a Salesforce VisualForce page that is using Angular JS and specifically ...
-1
votes
0answers
5 views
Node js; Error: This socket is closed
I am trying to use yeoman in another computer for angular development, but first time I encounter the problem below.
(node:5444) fs: re-evaluating native module sources is not supported. If you are ...
0
votes
0answers
6 views
md-select showing multiple selections after updating
I created an issue on the material github, but with their focus on material2, I wanted to get some help from the gurus on here to determine if this is something I'm doing or if it's a problem with ...
0
votes
1answer
9 views
Error Binding strings with Angular 1.5 components
I am trying to bind a string through the html of an angular 1.5 component. I am getting an error message that says:
Error: [$compile:nonassign] Expression ''My Title'' in attribute 'title' used with ...
1
vote
0answers
32 views
Is it possible to to make many $scope variables in angular
I want to receive from server some JSON data and print it like this:
<div ng-app="myApp" ng-controller="pastController">
<table>
<tr ng-repeat="x in names">
...
0
votes
1answer
24 views
Serve static files using httplistener c# -
Im trying to serve my angularjs app using httplistener object.
I cant use iis or web server... I must serve my static files using localhost service.
My goal, is that when click f5, my app will open ...
0
votes
1answer
15 views
Applying data from asynchronous call to the scope
I'm setting up my very first MEAN application, which is a simple message board.
I have a postMessage() function and a getMessages() function. Whenever the application is launched I call getMessages() ...
0
votes
1answer
11 views
Access control with Angular & UI-Router. Call Stack Size errors & not reaching Express auth route
I'm trying to add access control to my Angular app and running into some puzzling troubles...
On the front-end, the authentication function is being called repeatedly until it is stopped for being ...
0
votes
0answers
14 views
AngularJS 1.x Instead of Timeout with Delay, Check When HTML Content is Available
For an AngularJS v1.x app, I want to modify DOM content once HTML content is finished loading from a server.
The problem is that server loading time of HTML content can vary.
Instead of using a $...
0
votes
0answers
8 views
how can I get access from angular2 project to the “$wakanda” service to retrive data?
I've just created a new project in wakanda.io with angular2 and backend.
I created some db entities and now from the client side I just want to retrive data from the db. In order to make this working ...
0
votes
2answers
19 views
Binding user input data to AngularJS object
Im working on a project where I input a user's Id, first name and last name. Once input, I create a user object which is stored inside the logins array.
What I'm trying to do is display each new ...
0
votes
0answers
3 views
Protractor - Giving “could not find testability for element” error when accessing element
I'm running into issue with Protractor when accessing variable that stores return value of "elements.all". I'm fairly new to Protractor, so I wasn't sure how to select elements by custom attribute. ...
0
votes
0answers
21 views
ng-show not recognizing boolean?
I'm using ng-show to display a log in and log out screen, I'm having trouble figuring out what I'm doing incorrectly here. im defining mc.show as an object in myController. setting the boolean to true ...
-1
votes
0answers
9 views
Autoupdate data in chrome extention
I have an extension for chrome. (Via the link code).
How do I get updated page when you click on the menu icon (or on timer)?
http://jsbin.com/fajoko/edit?html,js,console,output
0
votes
0answers
31 views
Model does not show at ng-click
I have a very unusual thing happening when a function does not execute when it is called.
Here is my sample code (HTML):
<ion-pane class="pane">
<ion-header-bar class="bar-stable">
&...
0
votes
0answers
3 views
Accessing ENV variables in Rails-AngularJS (1.5) application
Working on a Rails-AngularJS (1.5) application and I'm having trouble accessing my ENV variables in the JavaScript (services, console, etc.).
I'm using dotenv, placed my SECRET_KEY in a .env file, ...
1
vote
0answers
42 views
AngularJS - Puting module in separate file
I am currently trying to get AngularJS working with Node, but for some reason as soon as I move the script to a separate file, I get the error "[Error: Injector Modulerr] Failed to instantiate module ...
0
votes
0answers
21 views
Angular ng-repeat inside nav tab not working
I'm trying to generate a nav tab dynamically.
This code works:
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" ng-class="{active:isSelected(1)}">
<a ng-...
1
vote
2answers
11 views
Angular next and prev navigation math logic
This is probably a piece of cake for you math gurus. The prevSlide goes back fine 3-2-1-3-2... etc. Regardless of the point of entry. But the nexSlide starts out 1-2-3 and then it just 2-3-2-3...I'm ...
-2
votes
0answers
15 views
how to show data in below angularjs
i was create page but i want show data in below how do this in angularjs please help me. i was click on button and result show are below how do this please help me.i have html page i want show detail ...
1
vote
0answers
16 views
Equivalent of Angular 1's decorator in Angular 2
In Angular 1 there was a concept of substituting or extending the built-in services with decorators.
Is this an accepted idiom in Angular 2? If so, what is the best-practice way of doing so?
0
votes
1answer
10 views
ngRepeat printing numbers in range
I'm trying to print numbers on screen from 1 to 100, without using any kind of array or object. Instead of those, I have a variable, using like this: $scope.number = 100;. I found solutions for arrays,...
0
votes
0answers
17 views
Error: [ng:areq] Argument 'MainController' is not a function, got undefined in IE
I hate to ask this question b/c there are so many similar to it but I have wasted 5 hours today trying to solve what is causing this issue. My app runs perfect in Chrome and Firefox, but in IE 11 or ...
0
votes
0answers
9 views
Angular X-Editable Remote button?
I am using Angular X-Editable to allow users to edit list items in a ng-repeat.
I am using this approach: https://vitalets.github.io/angular-xeditable/#text-btn
However, I have been asked to modify ...
0
votes
0answers
19 views
how can i avoid having to get data very time i change view in angularjs
i am new to angular and a bit of a novice generally. any examples i have looked at seem to use a service to request a collection in a controller for a view and attach it to the scope for that ...
0
votes
1answer
9 views
Filter ng-repeat using object property
I have an array as like as given below:
$scope.athletes= [
{
name: 'name 01',
measurements: [
{
type: 'date'
}, {
type: 'info',
value: 23,
rank: 1
}]
},
{
...
0
votes
1answer
13 views
angular service to controller
I am struggling with a service to controller. I used to put my http request on my controller before, but now I want to improve and put http request on service. But i can't find out what is not working
...
-1
votes
0answers
9 views
Unable to send login details in POST request when using browsersync and gulp
I have setup a project on my local system and I want to sync my phone with my browser. Both the devices are in sync using gulp serve and I hit the External URL in my phone which works fine.
Issue is ...
-1
votes
1answer
24 views
How to Implement AJAX in Angular 2 through a Javascript Function
I want to implement AJAX in Angular 2, but I don't now how to do this.
I have my Angular 2 component:
import { Component, OnInit, AfterViewInit } from '@angular/core';
declare var filter: any;
...
0
votes
2answers
14 views
Getting `state not defined` error when it is defined
In my angular application I want to go to another page on a click of a button. For that I use GoNext function. Below is my code that gives me state is not defined error. Can anyone tell me what is ...
0
votes
0answers
27 views
how do I read values from inputs in modal
I have a modal, and in it I generate N inputs like this:
js:
for (var i = 0; i < response.data.length; i++) {
$scope.fiedsMap.push(response.data[i].FieldId);
$scope.table.fields....
0
votes
0answers
7 views
Avoid the closure of bootstrap-accordion nodes when data is refreshed
Using AngularJS and Bootstrap, I'm trying to display and accordion which is updated from the server side every "x" seconds. Problem is that every time the accordion is "refreshed" - all the nodes are ...
0
votes
2answers
16 views
Angular Js- Why on click the value is not selected?
I am implementing a typeahead with an image in the dropdown the problem is when i click the item in the dropdown it does not get selected.
<body ng-app="TypeaheadDemo">
<script type="text/...
0
votes
2answers
11 views
Angular Filter for Object
I am trying to use filter in order to match a newly selected name from a select element using ng-options with the names ID.
The object I'm working with looks like:
$scope.fish = {1:'Ben', 2: 'Rich',...
1
vote
1answer
17 views
Backspace makes input not populate using ng-model
I have an input tag like this:
<input ng-model='number'>
and a bunch of buttons that populate this input:
<a class='btn' ng-click='pop(1)'>1</a>
This is the pop function:
$...
-3
votes
0answers
13 views
pass form data using angularjs(as JSON) to a servlet and insert it to oracle DB
I need to post form data using angularjs. The .js file should use $http to post data as a JSON type having url:,data:_,etc.
Then on receiving it at servlet the json object has to be read and mapped to ...
0
votes
4answers
30 views
Using express.js to execute a function after receiving an http request?
So I have an angular controller that successfully makes an http request after a button is pressed. I have a node.js server running which gets the request and then sends back YOU HAVE SUCCEEDED! HTTP ...
0
votes
1answer
23 views
different 'select all' checkboxes for different lists of checkboxes, angularjs
On my page I have a three list of checkboxes. Each list has an own checkbox "select all". I do not want to increase code with duplicating lines, that's why I'm using the same function with parameter ...
0
votes
1answer
12 views
Angular formly only shows blank page when printing form
I am attempting to create a button where a user can print the page for their records, but it keeps showing up blank using formly, I'm assuming because the form is being generated dynamically. I am ...
0
votes
0answers
8 views
Barcode keyboard scanner in text field causes clicks
I have a form which has buttons and a text field. On the mobile device when I input values into the text field the first button gets clicked.
In the following form name=test2 when I enter values via ...
0
votes
0answers
30 views
angular vs vanilla javascript vs jquery, should I use only one of them?
I did all my javascript on front-end in angular.
My app is not single page application.
I do not have any routing. I just needed something so my user interaction does not depend on ids or class ...
0
votes
0answers
8 views
AngularJS Yeoman Single Stack to Full Stack How Best To Approach?
I'm using Yeoman as a scaffolding tool and had built a small project last year but I've now created a new version and it's now a fullstack project.
I'm using AngularJS FullStack and have created the ...
0
votes
0answers
6 views
ng-cordova-oauth returing access token only
I am using ng-cordova-oauth to login with facebook it works perfectly until the user finished the login process, the result is just the access_token only, I need to get the email and public profile as ...
1
vote
1answer
9 views
Auth0 NodeJS Authentification Refused using npm request
I'm facing a problem, I tried to connect to Auth0 API to enable a strong identification to my WebApp.
For context :
Front-End : I'm using an angularJS front, and there I implemented the Lock Library ...
1
vote
0answers
14 views
Cannot get $anchorScroll to work properly with scrollspy
Right now I am working on something with angularJS and Bootstrap and for some reason I can't set the offset in $anchorScroll or scrollspy. Right now I am focusing on trying to get $anchorScroll ...
0
votes
1answer
17 views
Angular is compiling a expression that shouldn't
I'm just learning Angular and started with expressions.
I have the following code:
<div class="row" ng-app="">
<div class="col-md-4">
<p>
**Example {{ 5 + 5 ...
0
votes
2answers
19 views
Setting an image to the page background in an angular js based app
I am a newbie to AngularJS. I developed a simple currency converter app for which I would like to set a nice image background. This is my UI code:
<head>
<title></title>
</head&...
0
votes
1answer
12 views
AngularJS application problems appearance in Google search
I have a personal project which consumes my free time and effort for about a year without significant profit. I have problems with it appearance in Google and would really appreciate to get help here.
...
0
votes
1answer
14 views
Ionic / Angular / Cordova Camera Plugin - Include picture so the form can be sent to PHP
I am building my App using Ionic and in one specific tab I have a form where the user fills some of his details and they also have the ability to select a picture. To make it easier to understand, I ...