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 ...

learn more… | top users | synonyms (2)

0
votes
0answers
10 views

delete the item on search box if clicked.

I am trying to built a dropdown menu with a text box.When the text box is clicked the items appear and when the items are clicked they turn green(selected) and show up in the text box. I was ...
0
votes
0answers
3 views

Angular UI-Mask with multi mask

I'm using ui-mask (https://github.com/angular-ui/ui-mask) for my angular application I have to get the mask from the database , everything work well, accept , user want to have multi mask Ex : If ...
0
votes
0answers
3 views

$mdDialog button click not working on android devices

I have a custom mdDialog that works fine on my PC and a iPhone but when i use it on a android device my button for "ok" doesn't work. Here's the HTML: <md-dialog class="md-padding fhc-background-...
0
votes
0answers
9 views

how to avoid duplicate items with ng-repeat and drop in angularjs?

Can you advice me the right sole of some issue? I have next situation: 1.I load list of items from server and list it with ng-repeat in container here: <div layout="column" id={{vm....
0
votes
1answer
8 views

How to include html pages like home landing and other pages in index html in bootstrap?

I am new to create a web page so i need some idea of how each and every html page to be loaded in my index.html page.. As far as now I have included all the bootstrap packages and other css files in ...
0
votes
3answers
15 views

update object using id in angular js

I have an array with two keys like id and selected values its like below $scope.overview =[{'id':1,'selectedvalues':[a,e,o]},{'id':2,'selectedvalues':[aa,ee,oo]},{'id':3,'selectedvalues':[aaa,eee,ooo]...
0
votes
0answers
7 views

Removing a value from an array and moving them to another Array

I have a dropdown values from $scope.role from there I am able to select and remove the respective value from that dropdown and moving the values to $scope.multiRoles array . Which I am also ...
0
votes
1answer
13 views

dynamic ng-model in ng-repeat and get in controller angular js

I want dynamic ng-model in ng-repeat and want to get value of these ng-models in controller. I searched it on google and used this solution of stackoverflow. But it's giving me undefined in my case.I ...
0
votes
0answers
5 views

Ionic Facebook Cordova OAuth Error

Can someone help me ? :) When I pressed login btn, I got error "Not logged in: You are not logged in. Please login and try again" The error screen I am trying to test it with Phonegap Developer App ...
1
vote
1answer
12 views

can't get data from show method of rails api

I make a get request to http://localhost:3000/cars/1 but server does not reply json data. It says like that Started GET "/api/cars/1" for 127.0.0.1 at 2016-10-07 12:47:34 +0600 Processing by Api::V1::...
0
votes
0answers
9 views

Windows user name in angular js application

I have an angular js application and the services are available in a webapi. I have to pass windows user name to the webapi. How can I get the windows user name in the angular js application. Can ...
1
vote
0answers
13 views

What kind of code we write inside class declared under ngModule decorator?

I am just starting to learn Angularjs-2.I have come across several example using ngModule decorators over an empty class.Is the class declared below the Module decorators is only used to initialize a ...
1
vote
5answers
37 views

how to update a $scope object value in angular js

I have the following: sample collection of objects var myObjects = [ { name: "Object1", shape: "circle", color: "red" }, { name: "Object2", shape: "square", color: "orange" }, { name: "...
0
votes
2answers
39 views

How to avoid CSS impact by a third party library?

I have a angular project which use a library called smDateTimeRangePicker , it include the code below: Link Here .action { height: 30px; margin-bottom: 0; position: absolute; bottom: 0; ...
0
votes
0answers
16 views

Tooltip in svg a tag

I am using svg tag inside my angular page .. Below is the code for reference ` <svg version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 ...
0
votes
2answers
9 views

Unable to inject Services in .run in angular js

I want to inject service into my .run block, but when I inject it I cannot use them. My code is : .run(['AuthFactory', function ($state, $rootScope, AuthFactory, $location) { console.log("Auth ...
0
votes
0answers
6 views

Plunker not running Angular.js code when using version 2.0.0

I don't understand why the plunker IDE won't correctly render angular code that has a script reference to the latest version of angular v2.0.0 When I run the following code it works: <!DOCTYPE ...
0
votes
1answer
14 views

How to access data from json file in angularjs factory and return

json file which contains my app_key and app_secret, I have written factory service to make available app_key and app_secret everywhere. but I am not getting in correct format, here is my factory ...
1
vote
0answers
14 views

Gulp wrong order

I have an Angular project that is supposed to make use of a library called angular-libphonenumber (https://github.com/cwill747/angular-libphonenumber). I run: bower install --save angular-...
-1
votes
0answers
8 views

How to show the preview of file(image,audio,video) before upload in ANGULARJS

In Anuglarjs,am looking for the file upload directive which supports audio,video,image upload with client side preview and with $http post URL.
0
votes
0answers
8 views

Upload a File using AngularJS to .NET Web API

I referred some Stack overflow Questions and I tried the following code. The following code was not hitting the Web API. I tried with normal Text, then its hitting but not for the FILE. Finally I ...
0
votes
0answers
24 views

Angular wrong directive issue

I've a directive 'text-editor', it used 3 times in project in different modules, then, month ago, I've changed functionality in it - all ok, but yesterday I've created a directive named 'text-editor-...
0
votes
1answer
30 views

View and controller both not being loaded to index.html

I had my angular app loading my javascript properly before but it was not set up properly for routing. I am trying to fix that but now my javascript alert will not even pop up which means the file is ...
0
votes
1answer
11 views

Default asterisk color change inside md-input-container

I am working on md-input-container and I am trying change default asterisk color to red. Plz take a look here pen link <div ng-controller="AppCtrl" layout="column" ng-cloak="" class="...
-2
votes
1answer
13 views

How do I test alert pop ups in jasmine tests

if (BaseUtil.isEmptyString($scope.username)) { alert("UserName is empty"); return; } So here i want to test this alert with the specific message "Username is empty" in case ...
0
votes
2answers
12 views

Showing message in ng-repeat when search string array is empty in angular

<ul class="data-ctrl mCustomScrollbar" id="scrollbar" data-mcs-theme="minimal-dark dark123" data-ng-init="initScrollBar()"> <li data-ng-repeat="i in items | searchFor:...
0
votes
1answer
13 views

I want to run jquery code after the angular js completed all its rendering?

I want to hide and show my div chart. it should work with pages (Add, edit , saveas). the toggling of div is done through checkbox when i checked on checkbox div show and when its unchecked div is ...
1
vote
1answer
19 views

refreshing a page in angular js causes url not found error

I have created a simple AngularJS project where the path of index.html is ProjectName/index.html and my other html files are at projectName/templates/xxx.html and my script.js path is same as index....
0
votes
0answers
3 views

Pre-Select in select2 with angularJS doesn't work for Safari 5.1.7

I have successfully implemented select2 with angularjs. At time of updating data, I have to pre-select value for select2. I have also successfully done it. But it doesn't work for Safari 5.1.7. It ...
1
vote
1answer
33 views

Column total in table ng-repeat when filter in angularJS

I am getting column (Course fee) total at the end of the table when we load page first time, If we use filter, then column total is not getting reset. It should work if we use filter for all the ...
0
votes
0answers
7 views

Returning JSON from factory with Firebase results [duplicate]

I want this factory to return JSON but I can't get it to work. I've tried JSON.stringify(mapInfoItems) but that didn't work. Also tried doing a regex on the data structure, no luck with that either. ...
1
vote
1answer
32 views

Angular2: How to put return service value into private variable object?

I am creating an Accounting System UI and using angular2 as my framework. My app is working except for assigning the service value into private var. I created a service to make it more dynamic. So, ...
0
votes
2answers
28 views

AngularJS - http get response (JSON Array) and display in html

I've created a servlet in Java that displays an array using; printWriter.println(jsonarray); And the array shows up on the servlet page, but that's where the fun stops. I want to display the ...
0
votes
0answers
13 views

$compile error in bundled angularJS?

Here is unbundled angular code which is working well. angular.module('XXX').directive('xxx', ['$compile', '$injector', function($compile, $injector){ return { restrict: 'A', scope: false, ...
1
vote
2answers
26 views

Should font end or back end create html output when Ajax get data from server

I have a page when button click use ajax append data my question is should I let back end send JSON obj only and let front end JS create a html and placing all object's value into it and output in ...
1
vote
1answer
24 views

NULL value is saving in database instead of user submitted info

I am new to laravel and I am facing following problem My problem Problem i m facing is that whenever I submit the form after filling firstname lastname and phone, then everything going well except ...
0
votes
1answer
10 views

Submitting ASP.NET MVC CSRF token with $http in Angular JS

I am developing an ASP.NET MVC Web Application. I am using Angular JS. But I am having a problem with submitting post form to server because of CSRF validation. First of all, I am new to Angular JS. ...
0
votes
4answers
27 views

splice first added object in an array when new element is added in javascript

i am working on splicing the old object ie first added object in an array when new element(object) is added in to it automatically. this is the sample code i worked on var sampleArr = [{"id":4,"...
0
votes
0answers
11 views

Ionic native transitions not working

The transitions are not working. I am using https://github.com/shprink/ionic-native-transitions. I added the files, I added 'ionic-native-transitions' in my app.js What I am trying to do is to ...
0
votes
0answers
35 views

Mapping objects of old to new in JavaScript

I have this function but it is having only one object in each variable but there are an array of 3 objects in input. ctrl.func = function (oldDetails, newDetails) { var ...
0
votes
1answer
14 views

Sorting to separate Divs using ANGULARJS

I am new to the angular js field, and am trying to pick up the basics: I have a JSON that I want sorted into 4 or 5 separate parent divs depending on a value in the JSON, and then have the JSON fill ...
0
votes
0answers
7 views

Angular $resource cache not working, always fetch from server on every refresh

In my angular app, every time i refresh the page, the resource comes from the server. not from cache. my code is given below app.module('app',['ngResource']) .factory('appData',function($resource){ ...
1
vote
0answers
17 views

Angular 2 - HTTP request resolver before module's bootstrap [duplicate]

Module resolvers don't exist in Angular 2, but I wonder how to workaround and simulate this behavior. My problem is: I have a TransService that load translation data from a URL and store it inside ...
0
votes
0answers
6 views

Strange error with ui carousel angularjs 1.x

Hi im using the theme http://start-angular.github.io/sb-admin-angular/ and when I try to make a carousel with the following sintax, it start to throw the same error again and again TypeError: k is ...
0
votes
1answer
9 views

How to handle smooth navigation using angular ui-router

I am new to angular and creating a small project using angular ui-router. After going to documents, I have created the sample flow. But I got stuck in passing the json value to the template. I am ...
0
votes
0answers
7 views

How to get the Thinkster.io Reddit example to work with Internet Explorer 11?

I've been working on the Thinkster.io Reddit clone tutorial and need to get it to work with Internet Explorer 11. In IE11, the page is almost completely blank except for the {{currentUser()}}, Logout, ...
0
votes
1answer
7 views

md-nav-item is missing ink bar on first load

md-nav-item is missing ink bar on first load. then even if i click on it, it won't show. although the md-selected-nav-item="currentNavItem" is working since i can see it when i try to log to console ...
1
vote
2answers
32 views

JSON parsing which is have an array of items

I had a JSON response as below {"items":["1","2","3"],"code":"ok"} need it in a list/array which it should look like var itmsArry = ["1","2","3"] I tried something like this var simpleArry = ...
0
votes
1answer
13 views

Undefined when finding Embedded Objects in Mongoose

I'm using AngularJs, Node.js, MongoDB & Express and what I'm trying to do is to get a list of Projects that a client has, count them and return that count. The code is in spanish but it's pretty ...
0
votes
1answer
12 views

how to send data from angularJS controler to PHP using Json

well i have this problem about sending multi data from JS to PHP, i'm using angularJS. the problem is i can't receive any data, i'm a beginner in this stuff like AngularJS.this my my JS part: var ...