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
2 views
Generate dynamic buttons in angularJS table
I have a dynamic table being populated using ng-repeat=
How can i make the buttons dynamic , as buttons kind of hard code , all the stop timer buttons are getting disables once the starttimer button ...
1
vote
0answers
9 views
angularjs directive to check if min. one item in a list of checkboxes is selected
I'm trying to create a directive which should check if at least one item in a list of checkbox items is selected. If not it should show a error message under the list. Therefore I created this ...
0
votes
0answers
3 views
How to unit test service depending on $controller service in angularjs
I have a service depending on $controller service. Inside of this service, $controller service takes a controller name and locals to instantiate this controller.
When I unit test this service, I would ...
0
votes
1answer
5 views
ng-model binds data in one view but not the other
I'm using ui-router to build multiple views, I have a typical header, content, footer layout.
I used to have a search box in the content template, it simply uses ng-model to capture user input:
...
1
vote
0answers
5 views
Run ES6 constructor in Angular 1.5 component
I try to run the ES6 constructor code when the 'soran' tag is loaded.
but it just ignores. how can I run certain code by using a controller in angular 1.5 component() ?
import { config } from ...
1
vote
1answer
17 views
Integrating Highcharts with REST API
I'm studying AngularJS and I'm trying to integrate a chart using Highcharts and a REST API.
However, I'm not able to fetch the data:
$scope.myData = function() {
Charts.query({
id: ...
-1
votes
0answers
8 views
Storing results of Angular Resource in Factory
I'm currently using Angular $resource to make an api, and I would like to keep those results in a service rather than a controller because every time I call the controller the results get called ...
0
votes
1answer
10 views
Angular JS and Firebase dublicate data error
The problem I am encountering is that when insert text in plate number, car brand and save it, the table shows dublicates even the firebase database is showing normal data.
Procedure to find the ...
0
votes
1answer
4 views
How do I get web analytics on traffic to my firebase app?
Do I need to build it into the app, or does firebase gather stats on how many users open the app and associated links? Thanks
2
votes
1answer
15 views
Angular's ng-blur on input field not working
Ok, so I'm pretty sure I'm missing something obvious, but I'm not seeing it.
I created a fiddle that I would have thought would throw an alert message when the input box loses focus, but it's not ...
0
votes
0answers
7 views
netty socketIO with angularJS socketIO
I can connect my angular SocketIO to the Java SocketIO but the events aren't working at all.
Server
public class TBDSocketIOServer {
private final Configuration config;
private ...
1
vote
2answers
19 views
Using angular in partial pages loaded into a main page
I have a single page app. The main index page has section that loads different partial pages depending on user actions. Each partial page has different functionality.
For example, here is how my ...
0
votes
0answers
6 views
Unknown provider: firebaseSimpleLoginProvider
I am following this AngularJs & Firebase App tutorial and have run into a Unknown provider: firebaseSimpleLoginProvider error. The tutorial is a few years outdated so I've updated my script ...
1
vote
0answers
17 views
AngularJS handle incoming HTTP calls from backend server
currently I'm using AngularJS as my frontend framework for my website with a java backend server. The java server is running a task on a loop, and is constantly updating its information. In real time, ...
0
votes
0answers
3 views
How to post a json to my app ionic => symfony fosrestbundle
I'm pretty new in angularJs, in my ionic
app I try to post
a json to my app symfony fosrestbundle my app is correctly config.
but when I send my post the console
shows me this error message:
...
-3
votes
0answers
25 views
how to store object to variable inside another object in java script?
i am trying to store several objects inside one big object to export to excel (file.xlsx) using alasql.js.
$scope.children=[{}];
var app = {
'a': $scope.children,
'b': $scope.name
};
...
0
votes
0answers
8 views
Meteor angular - How to make database selection reactive?
i am currently learning Meteor with Angular trying to understand what means reactive.
When making Mongo db selection, i want to keep the $scope variables reactive. I am currently assigning variables ...
0
votes
1answer
9 views
How to use inline ngStyle with object
All:
I am pretty new to ngStyle, I wonder why my directive template code not work, like:
template: "<div ng-style='{'color':'red'}'>This is test ngStyle</div>"
The error is like:
...
0
votes
0answers
16 views
obtain different values in star rating
how are you. I'm implementing a rating at IONIC, although this is basically angular. I want to get the value for each category. if I qualify rubric "animals" I want to get the value I selected. if I ...
0
votes
0answers
11 views
Bootstrap UI modal offset positions (Chrome, IE, Firefox)
I'm seeing an issue where the offset positions between Chrome, IE, and Firefox differ. It looks like IE refers to the body at position 0,0 where Chrome and Firefox do not, instead those appear to be ...
0
votes
0answers
15 views
Updating a table from mysql using angularjs
I'm trying to learn angularjs and I seem to have trouble with making my table live.
I am fetching json from a php file, placing it in scope and using ng-repeat.
I understand that to update the table ...
0
votes
1answer
22 views
How to include all templates into one angular file
I am developing an angular module, this module is integrated for several sources files, js for controllers, directives and services and html for templates what I use in directives, this would be my ...
1
vote
0answers
20 views
moment.local() not working in Mozilla firefox
I need to display local time (converted from UTC) on Firefox browser. I read available posts and tried below things. Yet I am getting incorrect time.
Any help would be appreciated!
Time when record ...
0
votes
1answer
10 views
How to use a custom made bower component in angularjs?
In my angularjs project I have taken the independent filters and made a bower component so I can use them throughout many projects. I installed that component in my angular project and now what I want ...
0
votes
1answer
14 views
How to host 2 AngularJS app in 1 instance of Heroku?
I have an API coded in Nodejs and an AngularJS app statically served by the same server.
I need to host another AngularJS app which should be served by the same server.
How can I do that? Can ...
0
votes
0answers
6 views
How to delay catch function in angularjs during routing to a page?
I'm using $rootscope and two other service inside a service to update the data based on the current car. CarsService helps with car selection and DataSelection point to the folder that keeps the data. ...
0
votes
0answers
13 views
Gulp restart on every change
I have the following github repo which I use as a starting point for my angular/browserify apps (https://github.com/mcneela86/angular-gulp-browserify). When I am using the project I can run gulp and ...
0
votes
3answers
17 views
How to call directive from controller function [AngularJS]
How can I call some directive from Controller after success ajax request?
For example if I have function:
function successAjax()
{
call directive
}
and if I have in template:
...
0
votes
2answers
9 views
Array within Array gallery in Angularjs
I'm setting up a gallery view for a local house builder using bootstrap and Angularjs 1.5X. For the gallery view I want to show a list of thumbnail images down one side, and then the full image on the ...
0
votes
0answers
9 views
animation effect taking place inside react code
i am new to react...i am finding very difficult in writing a simple animation
- I have anchor tag which is my search icon
- when I click the search icon the text box should open and when i click the ...
0
votes
1answer
19 views
Cannot set Angular scope variable from within ajax call
var req = {
"RequestId": $scope.$parent.req_id,
"RequestDate": new Date(),
"RequestDetails": $scope.$parent.details
};
$scope.req_result = "test";
...
0
votes
1answer
25 views
AngularJS - XX is not a function
In AngularJS I have Controller as follows:
function LoginController($scope, $rootScope, $location, $cookieStore, UserService) {
$scope.rememberMe = false;
$scope.login = function() {
...
0
votes
1answer
8 views
Fire Google Tag Manager GTM Tags on Angular Clicks
My development team has created a single page website with many links like this:
<a href="javascript:" ng-click="setTab('geography');">Geography</a>
and
<a href="javascript:" ...
0
votes
1answer
18 views
How to build a data widget the angular way
I have a widget which comprises of a side bar and the content area. The sidebar has a tree component with several tree items. When a tree item is clicked,it fetches its own data and injects the data ...
1
vote
0answers
14 views
Angularjs: Issue when a query string is used on url without trailing slash
Using Angular 1.5 in an asp.net mvc site.
I have a base tag:
<base href="/fr/">
and html5mode is set.
The site works perfectly. I use ui-router... no issues.
But today I hit one and this is ...
-2
votes
0answers
29 views
Sort display of popular tags by weight
I got an array with tags for all post made by a user.
E.g ['qwe', 'asd', 'rt', 'qwe', 'rt', 'qwe']
And now I want to show all these words in a box and I want the most popular tag 'qwe' be of the ...
0
votes
0answers
20 views
Parent controller can see properties set in child controller when I expected undefined
I have the following Angular code:
index.html
<body>
<main ng-app="app">
<div class="container">
<div class="parent" ng-controller="ParentController">
...
0
votes
1answer
12 views
$urlStateProvider undefined error
I have included my dependencies for using Angular UI router but when I run my application I keep receiving an error stating: $urlRouteProvider is not defined. It seems to not be recognizing UI router ...
0
votes
3answers
24 views
How to pass data to controller and back to the view in Angular?
I have the following function that adds a comma every 3 characters as you type, so for example 1000 with return 1,000
http://plnkr.co/edit/TL8hlIxyPbwUNCbLiKgs?p=preview
But the function is specific ...
0
votes
0answers
15 views
ng-repeat inside $sce.trustAsHtml
I am trying to pass a ng-repeat inside the
$sce.trustAsHtml("<p ng-repeat='panel in panels'>{{panel.displayName}}</p>")
Is this the right way to do it? I would like to use the result ...
0
votes
1answer
12 views
how to add a empty string as default in the drop down where dropdown is a directive
In my AngularJS project, I am having a dropdown field as a directive and the values are coming from the backend.The user can also leave the field without selecting the dropdown(optional field) but the ...
1
vote
0answers
13 views
kendo grid inline edit dropdown will not expand on tab navigation
I'm having an issue with Kendo Grid in Angular where the custom drop down I've implemented will not open when tab navigating to that column. The built in text and number editor fields are editable on ...
0
votes
0answers
16 views
AngularJS repeat cascade List with an independent select of values for each
I'm trying to have ng-change on my command select call a function, changeCommand() that will get a list of parameters and then for each parameter get a list of values for that parameter to then show ...
0
votes
0answers
9 views
Angular material fixed sidebar and header
My DOM structure goes like this:
<div layout="column" layout-fill>
<header >Must be fixed</header>
<md-sidenav md-component-id="left" layout="row" layout-fill>
Sidenav ...
2
votes
1answer
22 views
Angular controller - saving received file sent by node
My Node server is sending a file in response to parameters submitted by the angular controller using angular service.
Here's how my node server is doing that:
Node js export generated json as file
...
0
votes
2answers
30 views
AngularJS: Is it possible to access html element that called a function in the ng-hide directive
I am new to angularjs. Is it possible to access the html element that called a function in the ng-hide directive? I know that ng-click provides the $event which can be used to access the element. ...
0
votes
1answer
27 views
Argument is not passed from front to back-end
I have to said, am totally newbee in AngularJS. I want to add register option in my application. I got some example and I want to add register option.
I've done something like this:
var services = ...
1
vote
1answer
19 views
Declaring controller in html same as parent state
I am using ui-router and have nested states with views. I currently have my controller running twice, because it is declared in the app.js file and in ng-controller. I need to set the ng-controller ...
0
votes
0answers
9 views
Angular UI Grid In Spring MVC
I am trying to implement a simple Angular Grid with Spring MVC and facing issues with that. Listed below is the JSP and the Controller Code and also the error received when loading the page in the UI.
...
0
votes
0answers
24 views
Force Form Submit on Angular
I am trying to submit a form which includes an angular form.
I just want to submit the form so that php can analyze it and download a csv file according to result generated.
I tried ...