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.

learn more… | top users | synonyms (2)

0
votes
0answers
3 views

How can I set the default device to emulate in Ionic?

I'm using Ionic to build an iOS app. Right now I'm testing how it behaves in an iPad 2, but doing this requires me to constantly need to write: ionic emulate ios --target="iPad-2" Is there a way to ...
0
votes
0answers
7 views

Changing click target of ICheck radio from angular directive

I am using the Icheck library in my site to replace regular radio icons. For reference, this is the library: http://icheck.fronteed.com/ To avoid the use of jquery with angular, and to allow its use ...
1
vote
0answers
7 views

How to force an attribute that is bound to a function to refresh

When an angular attribute is bound to a property of a controller/scope, it automatically updates when that property changes. How can I get an attribute that is bound to a method of the ...
0
votes
0answers
5 views

Use of ui-select with Angularjs and ajax values

I'm trying to switch from Select2 to ui-select angularjs wrapper. I fill value through ajax call: $http({ method: 'GET', url: 'roles' }).then(function successCallback(response) { ...
0
votes
0answers
6 views

How to use properly ui-select in ng-repeat directive

I have an ui-select which is wrapped in ng-repeat directive. Since they share the same scope I have several problems: after selecting value in first select second select is already prefilled with ...
0
votes
0answers
3 views

Show tooltip only when the text is truncated in angular UI bootstrap directive

I want to show angular UI bootsrap tooltip only when the text is truncated. I tried the below code with custom directive <div tooltip="{{value}}" tooltip-append-to-body="true" ...
0
votes
1answer
6 views

Reload nested state only not parent with url parameter ui-router

I have a state and a nested state in my app.js file. The parent state has a button that controls what is viewed in the nested state, this is done by setting url parameter and the nested state's ...
1
vote
0answers
7 views

Angular ng-repeat search for two fields of an object

Say i have the following array $scope.myArr = [{ name: 'Marc Rasmussen', phone: 239470192, title: 'It Dude', description: 'Hello my name is Marc i am testing the fact that i can ...
0
votes
1answer
13 views

Including Angular controllers on separate page

I'm working on converting an existing patchwork app into an Angular app. The app is built on a CMS that bundles "components" together as packages that are reusable throughout the site, so the most ...
0
votes
1answer
7 views

cannot get / in a simple node file

I am trying to do a simple node / angular example of a book got. However i get an error when loading the page: cannot GET / Anyone knows what i am doing wrong? Thanks var express = ...
0
votes
3answers
22 views

ng-click only works if I don't have a model

I have this code in my file <div class="table-responsive"> <table class="table"> <thead> <tr> ...
0
votes
1answer
19 views

Using $interval with get request

Here I'm attempting to create new get request using $interval. The result of the get request will update the model every second. But the interval is not being invoked : ...
1
vote
0answers
5 views

Converting an HTML table return from a PHP script to be in the format of ion-list for the Ionic framework

Currently I am developing an application on the Ionic framework. I have created a PHP file to pull 'Users' from my database and it is currently returning them in an HTML table format. In the services ...
0
votes
3answers
11 views

Ng-options not populating

So I have a JSON object returned from a PHP page. It contains accounts with their id, name, and number. I can repeat them all out onto the page, but when I use ng-option, it doesn't seem to work. ...
0
votes
0answers
17 views

How to programmatically put focus on floating label in Angular JS

I am making a form in AngularJS and this is how it looks How do I remove the label when the input is disabled. but it should come when I click on it. <div class="form-group form-md-line-input ...
-2
votes
0answers
24 views

find if the ng-model value is not in option of select box in angular js

I have select box like this. <select class="form-control" name="graduation" ng-model="p.grad" ng-required> <option value="B.A">B.A</option> <option ...
-3
votes
1answer
14 views

How to display response data ($http) from server in AngularJS

How to display reponse data (get) from server in AngularJS in my code I need to alert $scope.orders inside that controller but it willll not show.. function OrderController($scope,$http) { var ...
0
votes
0answers
9 views

Why res.redirect in node.js gives CORS error while making Ajax call using Angular.js

I am facing an issue while making ajax request to node controller function res, redirect gives CORS error which has been placed in node function. But if I make request through REST console. It works ...
1
vote
1answer
15 views

Activate specific tab after state change in angular

I have a web app built in AngularJS where I use $state to navigate through my different views. I'm also using several AngularUI Bootstrap components and styling, among other Bootstrap tabs. Now what ...
0
votes
0answers
5 views

AngularJS Filter Grid by selected item of dropdown?

I have a grid created thru angular and it contains textbox controls and dropdown controls in each row. The search feature is filtering on the value stored in the hidden fields. I want to know how to ...
0
votes
3answers
22 views

In AngularJS, how can I create a composite variable in my view without it showing?

In AngularJS in my view I can create composite variables like such: {{shouldShow = !isNew && !uploading}} This is great because I can encapsulate simple UI logic in the UI and leave my ...
0
votes
1answer
38 views

POST data from angular to node not working

I am using angular to send data to node server but it is not working. I am not able to see my post data(input values in form) in my node post method. I need to get that data save in mongoDb but I ...
1
vote
0answers
8 views

How to force a cache expiration on a node / angular / nginx app

I have a node / angular /nginx app and when I do a new deploy I need to force a cache expire on the browsers. There are tools to do this for the js files (adding a ?version to the file) but they ...
0
votes
1answer
24 views

Sharing Data between Controllers in AngularJS and IONIC

I'm trying to share data via a service that uses the $HTTP function between controllers. I'm trying to pass the return data in SUCCESS to another controller. Something is wrong I think in the service ...
0
votes
1answer
9 views

How to bind value from controller for ionic radio

Im trying to bind value of radio button from ionic controller. The following is the code i have used for. <div class="list"> <ion-radio ng-model="SearchChoice" ng-value="All" ...
0
votes
0answers
9 views

.NET MVC post deserialize empty json object to null

I'm using angular resource to post json object to my MVC Controller: $resource('myUrl').save(subject) where subject is: subject: { name: 'test' person: {} } my c# classes: public class ...
0
votes
1answer
30 views

ReactJs, must it use render

I have a general question about how ReactJs Render() functionality. Say we have some HTML within index.html <section id="Hello"> <h1>Hello world</h1> <p>Something ...
1
vote
1answer
10 views

Angularjs, e2e test with angular-recaptcha

I'm actually trying to e2e test my simple application and I m having some troubles dealing with angular-recaptcha (https://github.com/VividCortex/angular-recaptcha). Here's my test : it('should ...
0
votes
0answers
6 views

jquery-timepicker auto correction not seen during angularjs post.

I'm using jquery-timepicker v1.8.7 with angularjs which almost works perfectly with the exception of the auto correction. If I manually type into the field say 815 it will auto correct to you 8:15 AM ...
0
votes
1answer
9 views

Call fake not happening in unit testing of service method

function logOutUser() { var url = "User/Logout"; httpWrapperService.post(url, {}, {}).then(function (success) { }, function error(error) { ...
0
votes
1answer
24 views

AngularJS ng-click is not working from filter

I am trying to add a a-tag with a filter to an html-content. I'm binding the html-content with ng-bind-html and the a-tag contains ng-click. But my problem is, ng-click is not working. I am doing ...
0
votes
0answers
4 views

Cordova geolocation watchPosition frequency is higher than the options allow it

in my ionic/angularjs application I'm using the geolocation plugin: https://github.com/apache/cordova-plugin-geolocation Like in the documentation I use this to configure the watch: var watchOptions ...
0
votes
1answer
16 views

How to redirect on the server side to override Angular.JS routing on a post?

I have created an ASP.NET MVC5 application which uses Angular.JS to control one of the pages. I am able to successfully post back to the ASP.NET controller using an $http.post, however, in the ASP.NET ...
0
votes
2answers
45 views

AngularJS: How to execute jquery inside directive

I have a tree structure which uses jQuery. I had to use the same jQuery in my Angular application. I was able to create the tree structure with angularjs using directives, but i was not able to ...
0
votes
3answers
20 views

AngularJS - Populating HTML Drop-Down with JSON from REST API (without $scope)

A lot of solutions on Stack Overflow in relation to populating drop down menus include $scope. My second drop-down depends on the value of my first drop-down therefore I use ng-changeon the first ...
0
votes
1answer
23 views

angularjs controller updated $scope, then $apply not do nothing

I'm working in hmr into angular 1.x, then using RequireJs as module loader, I can update the controller code behind, using that function. Please find the below code for more information: var elm = ...
1
vote
2answers
28 views

Mapping nested values with ng-repeat

I have the following code where I use ng-repeat to loop and map some json values, rows is the json data where columns matches the key I want to display: function MyCtrl($scope) { $scope.rows = ...
2
votes
1answer
24 views

Using 'require' in angular component

According to the docs (specifically, the table comparing directives to components), angular components allow requiring other directives (or is it only components?). However, components do not have a ...
0
votes
1answer
13 views

display name based on dropdown selection in angularjs

Blockquote I have following item in output part, in need to display last item RMC only when i select the RMC from Select a Grade:option from drop dwon list.so how to make the condition which will ...
0
votes
3answers
39 views

How to directly return JSON object from $http? [duplicate]

I want to create a factory that always returns the json object retrieved from a webservice: angular.module('test').factory('myService', myService); myService.$inject = ['$http']; function ...
1
vote
1answer
14 views

How to move from one ng-route to another of different module

I am using asp.net mvc and angularjs for a project. I have created two module register and item.Both module have there ng-views and routing engine. Things are working till here, but now i want to open ...
0
votes
0answers
13 views

Using angular material components datepicker and autocomplete distort screen when used multiple times

I have a working app but when using multiple components of md-datepicker and md-autocomplete directives when clicked the browse tries to embed dynamically created content and shows some kind of ...
0
votes
3answers
24 views

Should I create a directive for each type of user input

I am creating a greenfield application in Angular. I was wondering what to do with the userinput. I will create 10+ date inputs, 20 text inputs, 8 dropdowns, 30 buttons, 10+ currency input etc., all ...
0
votes
1answer
13 views

In angular, create spa without # in links and with no server modifications

I am creating an Angular 1 SPA and I added <base href="/"> and $locationProvider.html5Mode({enable:true, requireBase:false}); So , now my links are like http://localhost:1234/about , ...
0
votes
1answer
4 views

PouchDB fails to sync on iOS 9 - iPhone 5S

I am developing an app with IONIC and PouchDB. The app perfectly synchronizes with remote CouchDB and works perfectly well on Android. But the PouchDB fails to sync on iOS. I am testing on iOS 9 and ...
1
vote
0answers
12 views

In angular 2 how do I hook up my cachebust js files to the app for deploying?

This is my gulp code for cache busting the js files and it works fine: gulp.task('getAllJsFiles', function() { gulp.src('src/app/**/**/*.js') .pipe(cachebust.resources()) ...
1
vote
0answers
13 views

how to upload a file using angular js and html only to my local path

I tried some code in tutorialpoint and other sites. while clicking upload button it's not storing to my local folder named fileUpload js file: var myApp = angular.module('myApp', []); ...
0
votes
1answer
17 views

Pub/Sub design pattern angularjs service

I've been trying to use the answer here posted by Mark Rajcok angular JS - communicate between non-dependend services I am having trouble understanding his answer. Specially this part: ...
0
votes
1answer
28 views

Why is the back button not showing up?

Can't for the life of me figure out why the back button doesn't show up when I navigate to an <ion-view> app root state template: <ion-side-menus> <ion-side-menu side="left"> ...
-1
votes
2answers
40 views

.then is not a function - make simple function a promise for AngularJS tutorial [duplicate]

I am trying to create a dummy exercise to help my colleagues understand AngularJS. In my example I wish to call a service to provide an Object Array that we shall pass into a Controller and assign to ...