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
3 views
Implementing a simple Observer Pattern using services in AngularJS
How are u.
I go to explain an solution that I believe that is valid and we can implement in our projects.
When we have more than two controllers that they have any kind of relation, we can refer at ...
0
votes
0answers
13 views
How to properly setup factory
I'm attempting to move my Firebase authentication logic from a controller to a factory, but running into problems with basic setup. I'm using Angularfire to accomplish authentication in my app, and ...
0
votes
0answers
7 views
Drill down chart in angular
I want to have a column chart in my angular app that could be drilled down to a line chart. I think the main problem is to be able to handle click event on each column that I could not find it ...
0
votes
0answers
7 views
angular service and ng-file-upload by danialfarid
I declared a variable inside a function and modify it again inside another function that is within the variable function. Why the value of variable upload is reset or reinitialize when returning it?
...
1
vote
0answers
23 views
Angular ng-model dynamic getters and setters
I want to use ng-model with an external model-service. This model has two methods: getValue(variable) and setValue(variable).
So in my html I want to be able to do:
<input type="text" ...
0
votes
0answers
8 views
How do I write this J Unit test properly? It fails even though the code works. What am I missing?
This is my first attempt at unit testing. The project is AngularJS/JavaEE. The REST calls are coded in Java. The method I am attempting to test returns emails from a GMail inbox. The emails return ok ...
1
vote
0answers
22 views
how to add multiple class names with different conditions using ng class in angular?
I need to add 2 class names in specific conditions to an element:
ng-class="(commentItem.comment | escapeHtml | direction)"
works for the first, getting text content of given html string using the ...
0
votes
1answer
7 views
Jquery autocomplete with AngularJS filter
I can't get AngularJS filters to work correctly with Jquery autocomplete. Filter works fine when you are typing but if you select item from the autocomplete list result isn't updated until another key ...
0
votes
0answers
7 views
Paging is not working in my kendo ui grid in angular js
I want to implement server side paging,sorting and filtering in kendo grid ui with script in angular js but problem is paging is not working.
First 10 records are displaying but when i click on page ...
0
votes
1answer
17 views
ng-Repeat not working with Custom ValueFilter (Value | customFilter) in 1.3.x but in 1.2.1
i am Trying to update a Solution from 1.2.1 to 1.3.15 but i got stuck it seems that there have been a change how the digest Cycle run through loops.
I have a Factory which holds data For all My ...
0
votes
4answers
31 views
Enabling HTML 5 mode in Angular
I am writing my first SPA in AngularJS but have hit a problem with the routing.
I am trying to enable HTML 5, like this:
.config(function ($routeProvider, $locationProvider) {
...
0
votes
0answers
5 views
spring boot and angularJs example to deal with authentication using a mysql database
I'm devoloping an application using Spring Boot , Spring Data and Angular JS , I'm looking for a good tutorial to help me deal with authentication with spring security (it's my first time to use it ) ...
-2
votes
2answers
26 views
Create a real chat application between 2 clients or more
I have a web application that I have created with angularJS/Symfony2 and a mobile app with(ionic) I want to create a real chat application between this 2 clients.I thought to use nodeJS and ...
1
vote
1answer
15 views
Services with ES6 (AngularJS)
I'm having problems accessing Angular built-in services such as $http when creating a service with ES6.
For example, I'm creating a "ResultsFinder" service that will do an AJAX call and then do some ...
0
votes
1answer
26 views
ui-sref active is not working
ui-sref-active is not working for following scenario:
<li ui-sref=".flavors({trigger:value })" ui-sref-active="currentState">Flavors</li>
I have used $state for knowing state name ...
0
votes
0answers
26 views
AngularJS: ng-repeat is listing thousands of elements when there should be none
I've searched for issues similar to this but have found none. I have a service which does a $http get for a list of items, and a controller which calls that service and binds the list to $scope. On my ...
0
votes
0answers
9 views
Showing status of a batch update operation using WebApi
I need to know how to update UI with the status of a batch update operation. For example i am sending a request to WebApi to update multiple records (could be any number of records), now i want to ...
0
votes
0answers
6 views
Bind button/links with my carousel images in Angularjs
In my application there is a carousel with images that I get from my service. Under the carousel there are 3 buttons that give more information about the image.
These information buttons should ...
0
votes
0answers
24 views
Hidden textarea still shows at page load
I am working with AngularJS and I have a textarea that is part of a directive's template. I want it to be hidden, so I tried ng-show="false", style="visibility: hidden" and style="display: none".
The ...
0
votes
0answers
35 views
Angular Object key value not showing
I have an array with objects each of these Objects contains information for my menu.
In the Image u can see that one of these Objects contains: id, lang, link, modul_id,shrtModul, sort.
Now my ...
0
votes
0answers
12 views
angular+express can't find the ejs
Must have missed something, setting up a webpage which is suppose to use routing, and think I have got it working, of sorts, but for some reason the "partials" route can't find my files, but can't ...
-1
votes
0answers
21 views
AngularJs: upload file
I want upload file with AngularJs but don't want to use the library already write...I wan use in my html this code (if it is correct):
<div>
<img src="..." alt="..." ...
0
votes
1answer
20 views
Event unbinding in AngularJS
I'm very new to both angular and MVC programming so im not sure if im doing this correctly.
I have a jquery snippet I wanna use one some of my partials both not all of them. But since the event ...
1
vote
1answer
17 views
AngularJS single page and multipage app difference and use in practise?
I've been studying the difference between single page apps and multi page apps, and I think I have good view how they differ. Single page app starts by loading a single html page, and then it does ...
0
votes
0answers
12 views
angular ng-model-options getterSetter not working
I am trying to use ng-model-options getterSetter. But I can't get it to call my model function.
<input id="idShowDisabled2" type="checkbox" ng-model="myObj.Trev" ng-model-options="{ getterSetter: ...
0
votes
0answers
12 views
How to Create jquery DataTable from angular $sce Generated Html
I have written angular controller which takes data and generate HTML Table from It the generated table in displaying in the page
How i can apply jquery data table using that scope variable.
The ...
0
votes
0answers
36 views
ng-show TypeError: object is not a function
I'm using ng-show to display an error if two input values are different - all works OK, but I keep seeing the following error in my console when the view loads:
TypeError: object is not a function
...
0
votes
0answers
3 views
Angular Google Maps - Error: [ng:areq] Argument Controller is Not a Function
I'm trying to load a blank google maps app in my rails app (I will be adding markers later via facotries, etc). This format worked in my last project, but unfortunately I can't get it to load this ...
0
votes
1answer
20 views
Inject at same time a service and provider in angular configuration
I have an angular configuration:
(function () {
'use strict';
angular
.module("app.functionality")
.config(config);
// ...
0
votes
1answer
13 views
ng-response save: expected response was object, got an array
I've read answers to similar questions here but none seem to correct the problem I'm seeing. Given:
var app = angular.module("eg", ["ngResource", "postAPI"]);
var postAPI = angular.module("postAPI", ...
0
votes
1answer
31 views
Dynamically add/remove directive from an html element
How to dynamically remove and add directive to one element in javascript? Why it's not possible to do that with setAttribute() and removeAttribute() if in directive definition there is: restrict: 'A'?
...
0
votes
1answer
33 views
How we can define routes in angularjs by a single pattern
As you know, in generally registering routes in angular done in .config function by this way:
app.config(function ($routeProvider) {
var routes = { ... /* an array which has couples of urls ...
0
votes
0answers
12 views
Render UI Bootstrap directive generated from custom directive
I'm trying a pretty unusual approach of rendering a UI Bootstrap tab via AngularJS.
What I'm trying to do is:
Custom directive -- (That creates a) --> UI Bootstrap Markup -- (That renders) --> A Tab
...
1
vote
1answer
33 views
AngularJS is it possible to watch changes in ng-repeat?
Is it possible to highlight change in value that is generated with ng-repeat, from external JSON file that updates every 5sec. with $interval
This is the controller:
app.controller('main', ...
1
vote
0answers
20 views
Different ways to structure a factory in AngularJS?
Browsing across various AngularJS tutorials online, I noticed that each developer has its own coding preference.
For example, functions in a factory could be written in various ways:
As a variable
...
0
votes
1answer
19 views
angular routing and html5 Issue
I'm trying to make a routing , it's working when I just clicking on links , but when I refresh the page , browser says not found ! I'm using html5mode , also when I set the # on url and search page ...
-1
votes
0answers
17 views
Accessing to the Facebook profile picture
I am using Firebase in order to do a Facebook auth, I would like to know how to display and access to the profile picture from the returned json which looks like this
{
"uid": ...
1
vote
1answer
25 views
AngularJS: filter array of object by property name
I have an array:
$scope.default = [
{name:'bigid',desc:'Incrementing ID using <code>BIGINT</code>'},
{name:'timestamps',desc:'Add <code>TIMESTAMP</code> columns'},
...
0
votes
0answers
6 views
Auth failing for JWT with OWIN
I have a simple website using Angular to interact with a WebAPI backend. I am busy doing the log in process and cannot seem to get the authorization mechanism to work properly.
I used this article ...
0
votes
2answers
40 views
AngularJS directive loosing the variable value after filtering
Am having a stopwatch with different titles, when I start a watch it runs and after 10 seconds it pops an alert.I can filter the watch on top of title, when I reset the filter the running watch is not ...
0
votes
1answer
19 views
Getting not defined on factory
I am trying to use ionic with angular to pass data from one controller to anther,
I know that the best way to do it with factory,
But I am getting error:
ReferenceError: setData is not defined
...
0
votes
0answers
13 views
Angular-ui typeahead giving correct results only on backspace
I am using Angular-UI typeahead which works fine, but I am having a strange behaviour that when I press backspace, then it gives the correct results.
Let's say that I am typing
sector 4
...
0
votes
1answer
14 views
Two single clicks to rename something in html?
In OS X, if I do a single click on a file or folder to highlight it, and then do another single click on the filename, the filename becomes an editable input box that I can change the filename in that ...
0
votes
1answer
9 views
passing Parameter from ASP-Page to Angularjs-module
In an ASP Page I have a AngularJS modules directly applied. The ASP-page get from the server a parameter, that is to be used in the module. Like this (foo is the parameter):
<script>
var myApp ...
0
votes
0answers
13 views
Angularjs Custom select2 directive
I have created simple custom AngularJs directive for this awesome jquery plugin jQuery-Select2 as follows:
Directive
app.directive("select2",function($timeout,$parse){
return {
restrict: ...
0
votes
0answers
11 views
Highcharts config scope issue with AngularJS
I have a website with angularJS front end and I'm making use of Highcharts. In my highcharts config I call a function - however that changes made to $scope variables don't apply to the parents ...
-1
votes
0answers
16 views
how to disable editing into another person's account using angularjs
i am working on a project in which i am using angularjs .In this project when user1 is logged in that time he can edit user2's info by opening his edit panel using query string. Please tell me how to ...
0
votes
0answers
13 views
Cursor position changes on formatting to currency format by directive
Hello all,
I am using this currency format directive on the input element to format to currency while I type
(function() {
var currencyFormatDir = function($filter) {
return {
...
0
votes
1answer
14 views
AngularJS: Watching network traffic/xhr requests
Does angular/3rd party module for angular has support with network traffic monitoring, and how?
What I would like to establish is something similar to $watch, just for network traffic.
...
0
votes
0answers
12 views
How to move to a particular state on click of browser back without affecting ui-router state machine
I am creating a secured website (using AngularJS 1.3) where I want to redirect the user to 'Login' state if he clicks browser back button. I am using ui-router for state changes, and I make use ...