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
4 views

Got 200 success in header bar but preview and response bar showing nothing in angularjs

I am making rest call in angularjs project $http.get(url) .then(function(response) {.....} .... ... I am checkiing Network tab in chrome browser.. Some time, i am getting 200 success in header bar ...
0
votes
0answers
3 views

POST Ouput from RESt JAX-RS Service Takes too much time to reach AngularJS Client

This is a problem i've been trying to deal with for almost a week without finding a real solution , here's the problem . On my Angular client's side I have a button to generate a CSV file which works ...
0
votes
0answers
4 views

How to launch karma Chrome in background

I want to run karma chrome launcher in background because i am generating html tests and coverage reports which means i don't need a visual browser appearing everytime i run a test. Here is my karma ...
0
votes
0answers
7 views

How to work with angularjs components

I need some help for a edit and delete 'user' from a table using components in angularjs. Here is my component: 'use strict'; (function () { angular.module('userApp').component('userInfo', { ...
0
votes
0answers
7 views

how to retrieve post data from a modal using php and angularjs

I have been trying for 5 hours but still no luck! I want to Submit a modal within index.html and the submited data should be printed using php and angular js. My code index.html: <div ...
0
votes
1answer
12 views

Type error: AngularJS Cannot read property 'push' of undefined error

Trying to push,Can anyone point me the way out? Here is the code: Json Data: [ { "pk": { "id": 314697, "recId": 10 }, "descr": "Huawei Wi-Fi Router-...
1
vote
1answer
20 views

Calling functions on directive controllers

I would like to call a function on a directive controller, accessing the instance using it's id, from the parent controller: <my-directive id="id1" /> var dirController = getDirectiveByID("...
0
votes
0answers
8 views

AngularJS HTML5mode Pushstate with ui router

I'm trying to implement html5 pushstate on my application to prevent page loading when going back. However, when I click the back button on my browser, it still re-initiate the controller again. I ...
0
votes
0answers
5 views

embed pdf appeared blank when I try to build it from Angular

the problem is when I try to get the file in angular controller from a res.send response the embed pdf in browser doesn't charge the content. My code for node.js is: FilesController.prototype....
0
votes
0answers
9 views

how to get Data stored in one service from a controller received from $http service into another controller

How to get data from 2nd service in 2nd controller which is getting data from one controller through $http custom service //main Module var leaveApp = angular.module("leaveApp",['ngAnimate','ui....
1
vote
0answers
10 views

Access AngularJs application via link from email

I need some suggestions from people who maybe had an experience with similar types of applications. I am building and app that should be use for on line testing. For example if you want a job in some ...
0
votes
0answers
4 views

Using ion-list to display the sub-items of the selected item

Im creating an app where there is a list of items displayed. when an item is selected it will be re-directed to another page where another set of items are listed with check box, so that the items can ...
0
votes
2answers
32 views

AngularJS Form Submit not working

First, I am brand new to Angular (and not a JS expert) but I have to get something working and am struggling with form submission. What I need to do is load some movie showtimes from an http API and ...
0
votes
0answers
16 views

Not able to set custom header in angularjs

I am making a http get call and want to set some custom property in header but I am not able to see these properties at my back end even not visible in http request. Here is code used by me app....
0
votes
1answer
17 views

How to calculate summary of result in Total result from table row

am able to calculate two inputs and saving result in result input and adding new row , but i want to calculate summary of result values in total Result(this input is outside of tr) [here is my code][...
-3
votes
0answers
8 views

Bundling a cordova app within another

Does anybody know if the following is possible, if yes, how? There is an ionic app, which must be launched from the nav menu of an another angular app. The requirement is that both apps must be ...
0
votes
2answers
37 views

AngularJs - how to use function variable outside in controller

service.js .factory('tableService', ['$http', function($http){ return { getTable: function(){ return $http.get("data/timesheet.json"); ...
0
votes
0answers
9 views

what should I do for this outer margin

I am using angular nvd3 library for generate Line+Bar chart. But I cannot figure out why this outer margins is visibeled. There is no any margins in the docs. http://krispo.github.io/angular-nvd3/#/...
0
votes
0answers
5 views

Xing not asking for permission every time I went through oAuth authentication

I am doing some contact import app in which i did oauth and i am able to get contacts.But when i import contacts, i am getting the permission asking window for first time.But if i try to import again, ...
0
votes
1answer
12 views

AngularUI: range datepicker don't block dates

Can anybody help? I wanted in my start-datepicker blocked dates after end-date and blocked dates in end-datepicker before start-date. I used angularui datepickers. I tried to do this using this code: ...
0
votes
1answer
16 views

How to insert {{$index}} into an ng-class directive?

I have a directive that loops through a list and adds class upon div elements like this : <div ng-class="{'has-error' : error.degreeYear_{{$index}}} /> When I inspect the element, the source ...
2
votes
1answer
16 views

How can I delay a change to my model until I finish typing?

I have this field: <input ng-model="phs.englishRange" style="width:6rem;" type="text" /> The word is used in a filter so when I make any changes to it ...
-1
votes
1answer
26 views

angular js - dynamically add Data in local storage

I am new to angular js , I am using angular js local storage in my project. I want to add data object dynamically on button click. How can I do that? My function is : $scope.saveItem=function(){ ...
1
vote
2answers
56 views

How to hide the delete button when I call onClick function to it

I am working on a code where I need to have an option of deleting. When you click on any of the number listed you will get and (button) option to delete. but Iam unable to hide (Delete button) once ...
0
votes
0answers
14 views

AngularJS ui-grid help: cell tooltip and export as CSV text shows HTML tags

I am stuck with this issue and would really appreciate your help: I have a ui-grid that displays my data, as well as a search feature for searching and filtering the data in the ui-grid. When I do ...
1
vote
0answers
19 views

Can I filter an ng-repeat by more than one item at a time?

I have this ng-repeat: ng-repeat="row in phs.phrasesView = (phs.phrases | keywordRange:phs.englishRange )" Here's the code for the filter: app.filter('keywordRange', function () { return ...
0
votes
0answers
8 views

Can I access url without reloading page to root by using ui-router in Angular 1 ( copy url and paste )

I am using an Angular 1 with ui-router. In my app.js, I inject $stateProvider to define my state. I know when use this state in view, I just add ui-sref in a tag. But I want to be able to copy the ...
0
votes
3answers
17 views

how to use AngularJS value as parameter in function? [duplicate]

I need to pass an ID value once the button is clicked. but gives me this error: error message What is the correct way of using: ng-click="passID({{x.id}})" ? <table id="Content" ng-repeat="x ...
0
votes
0answers
8 views

AngularJS ng-click doesn't work with mobile chrome browser

I have a problem with ng-click. On my desktop computer, erverything works fine. But when I try the same on my android mobile phone the ng-click doesn't work. Strange is, that it works with the ...
0
votes
0answers
4 views

How to use ng-redux + redux-persist

Can you please tell how to use redux-persist together with ng-redux? Or, if this is not possible, advise a way to save and restore the state to localstorage or indexeddb. Thank you in advance and ...
0
votes
0answers
10 views

Angularjs notification function using web services

I am a newly angularjs developer, i have create notification push count and view notification function sample code create. But i confused how to push count after view notification. please help me. ...
0
votes
2answers
36 views

Can not order drop down list value alphabetically using angular.js

I have an issue.The drop down list can not ordered alphabetically using angular.js . I am explaining my code below. <div class="input-group bmargindiv1 col-md-12"> <span class="input-group-...
0
votes
0answers
41 views

Create javascript element and link to angluarjs

I am using button to create element in javascript DOM way as follows var app = angular.module('app', []); function createElement2(resource){ el= document.createElement('textarea'); ...
-1
votes
0answers
13 views

I want to add icon or image in ionic toggle

How to place the icons or pictures in ionic toggle? I need like this
0
votes
1answer
9 views

Angular 1.x templateCache put content from separate file

I'm using the Angular templateCache like in the example of Angular. var myApp = angular.module('myApp', []); myApp.run(function($templateCache) { $templateCache.put('templateId.html', 'This is the ...
0
votes
0answers
8 views

Upload file is not working using AngularJS on lighttpd server

In my current project we are using lighttpd server. Here I am trying to upload the file. I am getting two Response Headers, first is with 301 Status code (Moved Permanently) and second is with 200 (OK)...
4
votes
0answers
32 views

Angularjs: why there are 3 watchers for 1 binding?

Please take a look at the screen shot given below As you can see in the screen shot above there are #3 watchers for a single binding. Can anyone please elaborate why is it so? P.S: I am using ...
1
vote
0answers
7 views

How to export xlsx files in bootstrap table in angularjs as it allow to download xls file

/** * @author zhixin wen <[email protected]> * extensions: https://github.com/kayalshri/tableExport.jquery.plugin */ (function ($) { 'use strict'; var sprintf = $.fn....
0
votes
2answers
17 views

How to take value(index) of inputbox in angularjs

Angularjs <tr ng-repeat="advLi in media"> <td> <input style="display:none;" type="text" style="width:35px;" class="form-control" name="mediaindex" value="{{$index+1}}" ng-...
0
votes
1answer
20 views

How to check if a component exists in Angular 1.5

http://embed.plnkr.co/oGlcQSOM2vFcDEKP7thV/ $injector.has('myMessageDirective') returns true, while $injector.has('myMessageComponent') does not Is anyone struggling with this or has a solution? My "...
1
vote
1answer
26 views

Best practice to get a json response object in angularjs

I have an API which return a json array object, right now, I get the json in my Controller like this and it works just fine : angular.module('lyricsApp', []) .controller('LyricsController', ['$scope'...
0
votes
1answer
20 views

angular $watch old value and new value are the same

My intention is to watch a value within $rootScope, and call the listener method when value changed. However, I found that if value doesn't changed, the listener will also be called. Is there a way to ...
0
votes
0answers
13 views

Angular Js with mysql php

Hi I am using angular version 1.5.8. My aim is to display html content from DB, I'm using ng-bind-html to do this. I'm facing following error "angular.js:13920 Error: [$injector:unpr] Unknown ...
1
vote
0answers
17 views

AngularJs - not able to get data from external file

Unable to get data from PHP file as well as JSON file timesheet.php require 'dbconnect.php'; $array_data = array(); $query = "SELECT * FROM timesheet"; $stmt = $conn->prepare($query); $stmt->...
0
votes
0answers
13 views

Multiple Angular UI carousel

I want to implement multiple carousels that will be generated dynamically after server call.I am unable to implement it using the code provide on angular ui carousel directive definition .My code is ...
1
vote
1answer
16 views

AngularJS : to get response when hitting mail.php using $http

This my controller function: $scope.submitContactForm = function() { $log.info($scope.contact); if ($scope.contactform.$valid) { $http({ method : 'POST', url ...
2
votes
0answers
22 views

Render unicode from scope variable to HTML using currency filter [duplicate]

I need to show the dynamic currency symbol in HTML. <span> Amount : {{140 | currency:symbol}}</span> In controller, I am having a $scope variable which has the currency Unicode. $scope....
1
vote
1answer
17 views

How to highlight form field if invalid - angularjs

I am having a registration form. I need to validate each field value and hightlight the particular field if it is invalid and move page to respective field area. I am using a span to validate the ...
1
vote
1answer
15 views

Use same directive in same view and bind different data

I have created a custom directive for displaying a charts made with the Highcharts library. Now I want to build upon this directive and create multiple charts in the same view. This is not possible ...
0
votes
0answers
7 views

how to open camera to scan credit/debit cards with card.io in android ionic/angular?

i am very likely to implement credit/debit card scanner in my ionic app.for that i had followed the documentation clickHere i also build-ed my app in my android mobile cordova run android. but i am ...