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 apps are also frequently known as Single-Page Applications.
0
votes
0answers
5 views
How to call controller function from a button outside of the controller area in angularJs
I have HTML structure like this
<aside class="side" align="left">
<table onclick="reply_click(event)" ng-controller="TableCtrl" >
<tr ng-repeat = "table in ...
0
votes
0answers
6 views
ui-grid inside tab is displayed without columns
I'm implementing a tab with an ui-grid that no show column from 5-th one.
In the firsst application load the grid is showed pretty well, but if I press F5, Ctrl-F5 the grid doesnt show the columns, as ...
0
votes
0answers
12 views
Angular: reusing directive and getting Multiple Directive error
I am having issues reusing a directive on multiple different html pages to create a modal (is the exact same modal). In using it once, everything works fine as expected. When I include it on the ...
0
votes
1answer
11 views
getting and passing around id of DOM element in angular
I am trying to get the id of an element from the DOM inside a controller and depending on the id the corresponding form will form will show.
I could easily make two separate views for each id but ...
0
votes
0answers
12 views
AngularJS footable fails to update data on first time
I am using angular footable for updating displaying items. There is a form associated with it, which when submitted, updates the footable data. The problem is that, the footable does not get updated ...
0
votes
1answer
13 views
How to assign dynamic text box values to corresponding models
In my angular js application there are text boxes users can add dynamically and update the data. How to map those to the modals. Here is the simple problem that I derived from my current usecase.
...
1
vote
0answers
3 views
google maps turn-by-turn navigation
I writing a web app(html5 and angular) where I use google maps to create a route. If the user uses the web app via mobile phone I would like to open a native google map app to show the route ...
0
votes
1answer
7 views
How to use to typeahead with a promise to display the name but keep the object
I have seen lots of tutorials for typeahead with |filter:viewValue.
But this does not work with Promises, so I do a :
return $http.get('').then(function(items){
return _.map(items.data,'name')
...
0
votes
0answers
6 views
Angularjs/Ionic Framework - Rendering an individual workout from a factory using $resource
After working off of the basic ionic tabs starter template, I'm having trouble displaying an individual workout from my json array data.
From what I understand so far, this factory returns my json ...
2
votes
1answer
26 views
Why are the select option values invisible?
I am trying to figure out why all the values in the Select dropdown list are invisible. Here is what the json looks like:
[{"team_id":"1","team":"Golden State ...
1
vote
0answers
12 views
Cannot display successful angularjs $http get response from local server in ionic template
I cannot for the life of me get this json response to render in my tab-dash view for my Ionic app. The response from the local server is logged as 200 but I cannot render the json to the view! I have ...
2
votes
0answers
10 views
Angular Animate with Greensock
I am having difficulty converting this working greensock animation into an angular animation. Can anyone suggest how I can do this? This was going to be tied to an angular modal wizard so this does ...
0
votes
1answer
12 views
Sending string and see if value existed in database using Express
I'm sending from client side and making query to database using express to find that person, I'm not sure how to search string from database. Any idea what is going wrong with the code below?
...
0
votes
1answer
12 views
element got removed after applying filter- angularjs?
I am applying filters to get the data of particular field through dropdown but when I select any option the filter applied elements got removed. How can I resolve it ?
here is my html code -
...
2
votes
0answers
10 views
selenium-webdriver idles until mouse is moved
I am writing test automation using Selenium / Protractor / Jasmine for a web app written with Angular. I am running the test inside VirtualBox (Host OS: Windows 8, Guest OS: Ubuntu 15.04). So far, ...
0
votes
0answers
2 views
Ionic IO .io-config.json ignored when new developer enters team
We got our www/libfolder in the ionic project in our .gitignore because we obviously don't want libs in our repo.
Now we use ionic IO and it has the function ionic io init which asks for a login and ...
0
votes
0answers
5 views
google map two markers on one map
Hi guys i'm working with this code below , but i don't know is is possible
and how i can do to add more one marker and set other DIV to show this position.
Anyone know what can i do or give me a tip
...
1
vote
1answer
3 views
Reusable Angular Material Dialog and Toast for Information Helper and Alert
I needed to use an suitable alert and helper for my project and found angular material to be awesome. However instead of pasting in the few lines in each controller because I needed to reuse them.
0
votes
0answers
10 views
Where do I put the Authentication Filter for Spring Boot 1.3.3
So I know what the problem is, I just don't know how to fix it.
Problem
I am using Spring Boot 1.3.3 and the CorsFilter is set like the following
public class WebConfig extends ...
0
votes
0answers
8 views
configuration nginx for angular front-end and PHP REST API
I'm trying to config a nginx server with an existing projet "Product – Inventory management using AngularJS, MySQL and PHP RESTful API"
...
0
votes
1answer
12 views
Angular: Uncaught ReferenceError: $cordovaSQLite is not defined
Trying to follow an example for using SQL lite, but hitting a stump.
Example says, include ngCordova in app.js as such:
angular.module('starter', ['ionic', 'starter.controllers', 'starter.services', ...
-2
votes
0answers
21 views
my Angular app is causing issues with I/O usage on my godaddy shared hosting [on hold]
I dont know what is exactly causing the problem with high I/0 usage of resource limitation into my godaddy account, I have been looking my code and reviewing it and I dont see anything that I can ...
1
vote
0answers
14 views
Is is bad practice in angular to mock a service via reassigning properties, instead of registering a replacement service?
Given a service someService that returns an object with 3 functions on it: fn1, fn2, fn3
In most cases I am mocking out my services by doing something similar to this:
(1)
module(function($provide) ...
0
votes
1answer
14 views
Highlight current tab on sidebar using AngularJS
I am creating a sidebar based off of this one
http://plnkr.co/edit/xzcjStdvmkI2rpfMzLjI?p=preview found from this tutorial
However I want to keep the selection active once the link is clicked. I've ...
0
votes
0answers
25 views
AngularsJS table with ng-repeat set table header
I am using the standard ng-repeat on an array to output an html table. However, I want to have plus and minus buttons to the left of each rows and at the top of each column so that the user can add or ...
1
vote
1answer
25 views
AngularJs simple custom service not working
I am new to angular and trying to create a new custom service and pull data on view. What may be the issue here?
<!DOCTYPE html>
<html>
<head>
<title></title>
...
0
votes
0answers
11 views
Pass $stateProvider reslove through function
I am trying to get my data formatted by using a date serialization function so I can have proper dates when I edit a form.
My app is set up to use the resolve in the ui-router which is using the ...
1
vote
1answer
17 views
Removing duplicate code in JavaScript; update object passed into function
I have a code snippet that needs to happen three times. Here is the first one:
if (!$scope.subId1) {
//$scope.subId1 = $scope.userEnteredSubId;
//cassetteRepository.subId1 = ...
0
votes
0answers
13 views
Array length not updating comming back from other state in angular app
When i first access to a specific route called "results" the route works properly, this route contains a http request to my server, however if i go back from another route to "results" using the back ...
0
votes
1answer
14 views
How to define a default route excluding static resources
I want to define a default route for single page application (angular core) using the express.js. The problem occurs when static file is requested and it does not exist in the routes. In this scenario ...
1
vote
0answers
16 views
angular-formly multiselect checkbox Select All
I have a multiselect field in angular-formly, with the following options:
vm.fields = [
{
key: 'fruits',
type: 'multiCheckbox',
className: 'multi-check',
templateOptions: {
...
0
votes
1answer
25 views
How To Loop Over Array Of Objects And Rewrite A Property Value
I have a Features array that contains objects. The featureUrl is returned from a service which it gathers from a database. All works great in my desktop angular app that uses ngRoute. But, I'm ...
1
vote
2answers
27 views
Angular JS Filter or statement
I have a ng-repeat statement for projects. I then have a dropdown that selects the region the project was in. I have it working if its a single region but i need to check for projects in multiple ...
0
votes
0answers
20 views
Angularjs ng-click first click not working on mobile
I'm new to angularjs. Here is my code
<ul>
<li ng-if="book.account.Customer.HasWorkspaceAccess"><a href ng-click="book.setType('workspace')" class="clickable">Book a ...
0
votes
0answers
10 views
Radio button binds to the previous value of radio clicked on ng-change
In my application, am getting the old radio button value on ng-change. Scope variable is binding to the old value instead of the current value. I have an array to take the radio button model value. ...
0
votes
0answers
25 views
Angular ng-model don't work
I'm trying to replace specific string in my text with inputs with ng-models. I used following code:
inlinetext.replace(buffer[x], '<input ng-model="singleQuestion.inlines[' + x + '].checkAnswer" ...
1
vote
1answer
16 views
Maintaining State When Changing Routes in AngularjS
I'm using AngularJS 1.0 and need to maintain state (user-entered data) on a page even when the user navigates (angular routing) to another page and then comes back to the original page. Here is what ...
0
votes
0answers
8 views
Refactoring vm functions into services. Is it appropriate?
I have a very large controller and it has become difficult to work with. It contains many functions being referenced from the view on click events. So I have a bunch of these little functions:
<a ...
0
votes
0answers
9 views
using Angularjs in ASP.NET MVC Area not working
I have a scenario where angular js is working in the index page and the razor partial views outside the areas folders, but when specifying the ng-controller and ng-app inside a partial view in a ...
1
vote
1answer
18 views
filter ng-repeat yet preserve initial length / count
I have been extending one of the demos on angularjs site to add more dynamic filtering.
I have 3 filters:
Query filter via an input field.
Order filter via select field.
Number of results to show ...
0
votes
0answers
28 views
Getting updates to a page as soon a they are posted to the database
I am currently trying to get updates from the database as soon as it is added. Currently, I am doing this by refreshing the content in a div every second. (The short refresh type is required for the ...
1
vote
2answers
43 views
$scope.value changes only after second click
There is my html code:
<div ng-if="user.type == 'none'"> <button ng-click="selectUserType('user')"></button> </div>
<div ng-if="user.type !== 'none'"> //here goes input ...
0
votes
4answers
36 views
How to stretch an image to cover full width and height of the div? (Using Flexbox)
I want to adjust the size of the image to cover up the entire div. It would be very helpful if you guys can suggest anything in CSS rather than using javascript for it.
Here is a sample of what i ...
0
votes
2answers
10 views
How to make a firebase object to only write data not read?
I'm still kinda new to Firebase and in implementing security with Firebase's Security rules.I'm working a project where I need to save data in Firebase but I don't clients to access the data. ...
0
votes
1answer
33 views
AngularJS view not updated after model updates
New to Angular, I am trying to save a form and update the view after calling a PUT or POST call to the backend. Once I receive an OK status from the backend, I am updating my models with the latest ...
0
votes
0answers
9 views
How to hide layout on android stock browser in AngularJS?
I have a released Beta Version of a Web-App which is written in AngularJS and uses Angular-Material. Unfortunately the layout is completely unusable and messed up on Android's Stock Browser (not ...
1
vote
1answer
36 views
Put object properties inside of another object
It could be pretty easy but i can't seem to find how to merge 2 objects in Javascript
e.g: object one
[
{
"name":"Actief",
"children":[
{
"name": "Vaste activa",
...
-1
votes
0answers
16 views
Make an html (and angular js) code IE11 or Chrome compatible instead of IE8 compatbility
While doing a homework to create a form in Angular.js, I followed many web tutorials and I wrote a file in html. But, my teacher said to me that my program is only compatible with IE8 while my ...
1
vote
1answer
11 views
Error when testing Factory toBeDefined
describe('Tickers Factory:', function() {
var tickersFactory, tickerContainer, tickerType, chartIsReady;
beforeEach(function() {
module('tickersFactory');
});
...
0
votes
0answers
6 views
AngularFire querying multiple locations
I have a project that contains user data that relates to other locations in Firebase which can be accessed by other users.
The data looks something like this:
"users": {
"user123": {
...