Tagged Questions
0
votes
0answers
20 views
How to dynamically update service variable value
I have a date value defined in a service which is used by all of my controllers (ie when a site loads the value is initialized and sent to all controllers using it), Now I want to be able update this ...
0
votes
0answers
21 views
Binding multiple files input data to data model in AngularJS
HTML View:
<form>
<input type="file" file-input="files" multiple/>
<button ng-click="initUpload()">Upload</button>
</form>
I have borrowed the following ...
0
votes
2answers
38 views
Reducing the overhead of using $emit and $broadcast in angularjs
I have separate angularjs component (angularjs version 1.5.9) that is integrated in angularjs application. My component do something and i want to notify my parent application to some work on the ...
0
votes
0answers
4 views
Include a header in html fountainJs
I'm new at this Framework, So I have an index page, it look like this :
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Redux TodoMVC&...
0
votes
1answer
28 views
How to dynamically set an Angular JS page's Title?
I have a running single-page AngularJS Web Application. To manage my routes, I'm using ui.router. Here is the state for my Splash Screen:
$stateProvider.state('splash',
{
url: '/',
...
0
votes
1answer
19 views
Unable to open or close accordian when using ng-repeat
I am new to angular and I just created an animated accordian with javascript to fetch and display some info. I decided to use ng-repeat so I don't have to write the codes repeatedly.
However the ...
0
votes
1answer
29 views
How to refresh a page once it's opened from a previous link?
I have a table with live data in it. I have a Create data page and View data page that contains the table. Once I have finished creating a new data and click a link going to the View page. The data ...
1
vote
1answer
21 views
Where is HTMLImageElemen.src handled for HTMLImageElemen?
Consider the following code that detect if the image src is valid in angular
isImage: function(src) {
var deferred = $q.defer();
var image = new Image();
image.onerror = ...
0
votes
0answers
9 views
slick carousel with angular
hello so im using slick slider with angular,
i got no error on my console. when i check on console all my image is show. but i only find button prev and next on my screen. when i click the button ...
0
votes
0answers
7 views
Some child elements are not working when I put the “ng-model” attribute in the parent element in Firefox browser
I just noticed that some of the elements disappeared once I included the ng-model attribute in my html file.
Like in my radio button. The checked radio's text turns bold using css. The "Male" button ...
1
vote
1answer
28 views
How to properly store element count in Protractor
I'm pretty new to Protractor and I'm not satisfied with the way I wrote the code below (which is actually working).I would like to simply store the count in a variable (here, "nb_before") and reuse it ...
0
votes
0answers
8 views
GAE and Angular: How to update data of a HTML JINJA template
I have a problem with GAE and Angular about updating dinamically data of a HTML template.
What I want is when a new user is inserted into the system it must be shown on the page which lists all the ...
0
votes
2answers
14 views
How to assign href or id by angularjs $index
I try to make collapsible panel with bootstrap and angularjs. I successfully have received data but I failed to put dynamically "href" of panel header and "id" for related body. The following html ...
0
votes
2answers
13 views
convert ng-repeat to ng-option error
I have this following html code for select tags.
<option ng-repeat="option in AllData" value="{{item.Id}}" ng-selected="data.Symbol==item.Id">{{item.Symbol}}</option>
I want to convert ...
0
votes
0answers
24 views
Angular POST route not connecting to Nodejs for Stripe integration
I'm integrating the Stripe checkout in my web app. I've implemented Stripe checkout on the angular front end and have also created a backend that is supposed to receive the token passed by stripe ...
0
votes
0answers
9 views
Changing multiple radio buttons selection based upon one radio checked in angularjs
I am new to the angularjs and came through this requirement, which iam not able to crack this. To save extra clicks for user am trying to do is, by checking one radio button of App1 should check the ...
-1
votes
0answers
14 views
How to show modal in nodejs with angular 1.6?
I want to show a modal of boostrap which loads another form with angular
Then I leave my code in nodejs
App.js node
app.get ('/nuevoinf/:id/:study', isLoggedIn, function(req, res){
var id = ...
0
votes
5answers
50 views
How to stop ng-repeat in AngularJS?
I am creating an app where I have a form showing, but when I do ng-repeat it gives a repeat of my users. BUT, only I want to show only one, that is clicked.
Here is my code.
<div ng-...
0
votes
1answer
20 views
Angularjs Array Single dimension to array with childs
Hello everyone and thanks for your help.
I have the following arrangement in Angularjs
$scope.arr = [
{
"id":284,
"name":"Ferreterias",
"geometry_type":"POINT",
"...
0
votes
0answers
15 views
Indiscriminate adding alternating classes to angular recursive template
Here is my recursive template, Thank you Brendan Owens.
<script type="text/ng-template" id="tree_item_renderer.html">
<div class="expanded row">
<div class="medium-1 ...
0
votes
1answer
11 views
Jointjs type definition
I'm newbe in typescript and trying to use jointjs definition file with typescript 2.2.
this is definition file in github.
https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/jointjs/...
0
votes
1answer
35 views
elem.innerHTML is only usable after a set timeout
I am currently working on an Angular1 app. I am getting data from an API and in the promise resolve (success) I first assign different values (some of them will be used in the view) and after that, I ...
-2
votes
1answer
19 views
Gat Array of form inputs Angular2
I am building an application in Angular2 and am struggling to get the value for the following inputs.
HTML Form
<form (ngSubmit)="createPage(f)" #f="ngForm">
<textarea name="meta[...
1
vote
0answers
9 views
Synchronization problems with automated testing Angular website with Selenium and testing issues with Internet Explorer.
I am trying to write an automated test program for one of my website using Selenium WEbDriver. I am having some problems when doing the test on Internet Explorer. The website that I am trying to test ...
1
vote
1answer
15 views
Why angular.bootstrap code not working with versions before AngularJS V1.6?
My problem is that when i include the URL:http://code.angularjs.org/snapshot/angular.js
in the below <script> tag code works perfectly fine,
instead if i use this URL: https://ajax.googleapis....
0
votes
0answers
15 views
Angular ui-grid Exporting to Excel
I have a use case of having large response data from a rest service to the angular ui-grid. Instead of rendering all data at once I want the data to be displayed in batches but the export to excel ...
2
votes
2answers
36 views
Angular JS Best Practices for Organizing Dependencies and Variables
I am working on a project where I am making sense of what a bunch of overseas developers did in Angular JS a year before I joined the company. It's a huge project with no documentation. I was curious ...
-1
votes
4answers
49 views
convert integer to array of object.
var items = [
{ "id": 1, "label": "Item1" },
{ "id": 2, "label": "Item2" },
{ "id": 3, "label": "Item3" }
];
I have this array of objects named 'items'. I get ...
0
votes
0answers
10 views
ngInfiniteScroll stops working after ng-click on repeated element
I'm using ngInfiniteScroll in a few different places to show contacts, and missed calls. It loops over every item and adds a ng-click to show user profile. The scrolling works fine in all locations ...
1
vote
2answers
17 views
Cannot find module 'ejs' on opentok sample
I am following this guide:
https://github.com/opentok/opentok-node/tree/master/sample/HelloWorld
The project compiles fine, but when I start, I get this error:
Error:
> Error: Cannot find module ...
-2
votes
0answers
9 views
why cambria font not display same in ios and android device, using angularjs and css3
why Cambria font not display same in IOS and android device, creating website using angularjs and CSS3. the web font not display same in android mobile browsers.
-4
votes
2answers
50 views
How Can I Convert Object with Multiple Properties into Array [duplicate]
Please I am trying to convert this object returned from my Web API:
[
{"a":65,"b":59,"c":80,"d":81,"e":56,"f":55,"g":40},
{"a":28,"b":48,"c":40,"d":19,"e":86,"f":27,"g":90}
]
Into array of ...
0
votes
0answers
17 views
how to refer to another html element in a directive
For my convenience, i created a directive 'twActionButton' which is performing an API Call to my backend.
some of these calls last longer & i want to indicate progress on the table row.
...
0
votes
1answer
34 views
How to call classes and function in type definition file?
I'm newbe in typescript and trying to use type definition file with typescript 2.2, (I'm using typescriptlang.org but can't get answer)I have the following type definition file
export as namespace ...
0
votes
0answers
16 views
angularJS file download with blob empty file
I'm currently having trouble with file downloading in angularJS.
I request my back-end server with a normal $http.get :
$http.get("http://localhost:8081" + filepath,{responseType: 'arraybuffer'})
...
0
votes
1answer
12 views
how to add Class to a template directive element?
i'm new to AngularJs Directive.
what i'm trying to do is , i need to add a simple class into one of my elements in template directive on click.
for example:
var app = angular.module("peykaar",[]);...
0
votes
1answer
15 views
cancel comment in angular and change view
when i click on edit button the view is changed by ng-if how to go back by clicking cancel button
<div class="timeline-body">
<div marked="cmnt.content" class="markdown" ...
1
vote
2answers
18 views
Injecting dependency angularMoment returning error
I'm trying to access moment.js API, injecting angularMoment as a dependency into my module but it's returning error:
Error: [$injector:unpr] http://errors.angularjs.org/1.6.4/$injector/unpr?p0=...
0
votes
1answer
21 views
AngularJs pass a fitler expression to directive with true at the end
I have a directive for the mover list called smDualList. The directive has the following template (partial code):
<div>
<select class="select-list" multiple
...
0
votes
1answer
16 views
Connecting two controllers AngularJS
I have two controllers at different application levels. I want connect thew to connect them using factory. And have common model.
AngularJS:
App.controller("searchCtrl",function(...
0
votes
0answers
42 views
Why AngularJS translate faster than JAVA?
I am programming both apps(first in angularjs v1.0 and the second in Android that is JAVA).
I used in AngularJS:
$translate.use('en_ES');
https://github.com/angular-translate/angular-translate
and ...
-3
votes
0answers
20 views
Angular - Website user Guiding libary [on hold]
I am building a SPA website with angular 2 and I would like to add a FAQ section.
However, some time ago, I saw an angular library which would guide a user where to click to get a specific task add.I ...
0
votes
1answer
22 views
Angular toggle custom dropdown
I have a custom dropdown selector. I want to Toggle the dropdown when i click anywhere else on browser.
toggleModules() is working within the dropdown.
Data: modules=["A", "B", "C", "D", "E", "F"]
&...
1
vote
1answer
49 views
Angular is duplicating $scope when navigating to another page
I have a page where I display all the Persons from the DB, let's call it All Persons Page. On that page I have 2 options:
Add New Person
Delete Person (Whatever Person I want)
The problem appears ...
1
vote
1answer
26 views
Pass ng-repeat item to a scope variable in the controller
I am trying to use an item that i get in my view and pass it to a funtion in my controller , but i don't know how to save that particular item here is my code :
the view :
<tr ng-repeat=" p in ...
0
votes
3answers
26 views
Issue with module in Angularjs
I have the following service which uses a factory called newsFactory. And inside this factory,I have a json array.
services.js
'use strict';
angular.module('larissaApp')
...
0
votes
1answer
12 views
Map combobox options for translation
I have a bunch of state names in my data model that I want to map to different keys for translation, e.g.
Open -> state_open
New -> state_new
Wait for approval -> state_wait_for_approval
Currently ...
1
vote
1answer
24 views
AngularJS: How to pass socket.io service data to corresponding directive
Using a socketio service I would like to pass new data to directives.
Passing the actual data already works and I receive new values within the directive. For this purpose I call the socketio service ...
1
vote
1answer
28 views
structuring custom angular directives
I am trying to add a few custom angular directives to be called on several views. that said, below is how I have the code setup
app.js
angular
.module('app', [
'app.routes',
'app....
0
votes
0answers
17 views
MEAN Stack javascript condition comparing user input and data from db
I'm trying to make a condition where if user's input is the same, then it will certain function, if not it will run another function. Just like this:
do {
for (var i = 0; i < products....