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

learn more… | top users | synonyms (2)

0
votes
0answers
9 views

Using Angular $http to retrieve data similar to my ajax function

I have this ajax that I want to make it work with $http post method. If I use my jquery ajax function, I am getting the data 'id' back from my url and my buttons work but with $http it doesn't pass ...
0
votes
0answers
5 views

ngToast newestOnTop doesn't work as expected

I am trying to get the toasts messages created by ngToast to appear on top of each other. On the documentation http://tamerayd.in/ngToast/# I found a parameter called "newestOnTop". I used it this way ...
-2
votes
0answers
16 views

Sending variable within JSON as a http request

I need to send a request in below format to my server: var data = { "document": { "title": "example title", "data": "{\"doc\": 111}", "user_id": 24 } } And I have a data ...
0
votes
0answers
9 views

Angular Js Flyout menu

This is my first project in angular js and i'm trying to show a tree in a flyout menu. I have found this dropdown menu example http://angular-ui-tree.github.io/website/tree.html and i want to change ...
0
votes
0answers
3 views

Angular Xeditable to edit column headings

When going to the AnuglarJS Xeditable site, they plenty of examples of how to edit data within the columns of a table but I am looking for a particular to allows the dynamic updating of just heading ...
0
votes
1answer
11 views

Angularjs Nodejs external controller

I'm trying my first app with the full MEAN stack but actually I'm stuck at definition of controllers/template outside from the first page. I'm able to reach the various templates I created, but I ...
1
vote
2answers
10 views

how do you add html elements into an angular expression?

I have this in an HTML table: <td><strong>{{item.title ? item.title : "<p style='color: grey'>select this item to edit</p>"}}</strong></td> Unfortunately this ...
1
vote
1answer
23 views

How do I enable/disable state changes based on promise returns in angularJS?

Plunkr: https://plnkr.co/edit/h0j2My7afdHPPaHPG650?p=preview The Plunkr has an example of the new code which I am trying to write and the old code (old-index.html, old-app.js). I am having difficulty ...
0
votes
1answer
14 views

Infinite Scroll in AngularJs Single Page Application

I'm developing a single page application and I've huge content with images and I'm representing the data on my page using lists I'm using infinite scroll, till some extent of the scrolling the ...
0
votes
1answer
11 views

is there an afterEach for modules in angular unit tests?

I'm trying to test a switch statement where config is a constant injected into the controller vm.twoFaSecondaryMethod = config[countryCode].twoFaSecondaryMethod; switch (vm.twoFaSecondaryMethod) { ...
0
votes
2answers
12 views

Ng-click Scope inside link of directive

Can you describe me, why I can't get value of local variable directiveElement inside link function of directive in ng-click method? Here's code: (function() { "use strict"; angular ...
0
votes
0answers
4 views

Travis-ci with hybrid app

I have a hybrid app developed with ionic. I wonder if it is possible to implement travis CI, to deploy continue. My project is in the git hub, like that every time it was asked for a pull request a ...
0
votes
0answers
12 views

Manually instantiating ngModelController in test

We have standardized on creating all new directives as controllers that then get married to the template in the directive. This allows us to test the primary functionality without having to use ...
-1
votes
2answers
16 views

Angular: what is filterFilter

i am new in angular and i am bit familiar with filter word but what is filterFilter word and usage in angular. just come across a code below from this url http://stackoverflow.com/a/22704140/6188148. ...
0
votes
0answers
15 views

Angular unit testing with different values in controller

I have a JSON which I am supposed to use to write a unit test. It looks like angular.module('mySvcMock', []) .value('studentMockJSON', [ { "username": ...
1
vote
3answers
29 views

Angular 2 - how do providers actually work?

I've been going through the "Heroes" tutorial on official Angular 2 page and when I came to routing, a couple of things didn't make sense. It's about providers. The part in question is represented as ...
0
votes
2answers
29 views

Using Angular Service to pass information between views with the same controller

I have a multistep form accross several views that share a controller. Here are the routes: .state('tab.newEventCategory', { url: '/activities/new-event-category', views: { 'tab-patient': { ...
0
votes
1answer
15 views

Alternative ways of communicating between AngularJS modules besides an API?

I'm new to AngularJS. Looking for some alternatives to communicate between two modules of a core AngularJS application? Besides a RESTful API, what other options?
1
vote
1answer
29 views

angular API for directives

what do you think of the approach to create directives that expose services? Example have a directive to do then get requests the UI would have just that: <api-http id="clients" ...
0
votes
1answer
31 views

Sending http requests with params using Angular/Rails

I have a front-end app in Angular and back-end in Rails. I totally decoupled those two for sake of easy maintenance. In my backend in Rails, I have a model called Document with three different ...
-3
votes
1answer
20 views

MEAN STACK Development Oppertunities [on hold]

I am looking to further my knowledge of the MEAN Stack. By profession I am an IT Recruiter that actually has a passion for Technology. From what I hear MEAN Stack is on the cutting edge of ...
0
votes
2answers
27 views

AngularJS: what is the usage of track by with ng-repeat

i am new in angular and i go through this doc https://docs.angularjs.org/api/ng/directive/ngRepeat but do not understand the objective of track by clause using with ng-option. here are few usage ...
0
votes
0answers
18 views

asp.net MVC routing with AngularJS

I ran to an issue with routing using one layout with ASP.NET MVC and AngularJS. Here is an error: http://localhost:2066/Administration/app/templates/admin.html Failed to load resource: the ...
0
votes
0answers
17 views

Simple Join/Leave button for groups - angularJS

I've been working on a project lately where I'm using Laravel to create my API and backend purposes, while using AngularJS as my front-end framework. So far, everything is working (all CRUD actions), ...
1
vote
4answers
41 views

Check if last typed character was space

How can I check inside my ng-change function if last typed character was a space? ng-trim must be set to true. I tired go to my last typed char by myStr.substr(myStr.length - 1) but when I was ...
0
votes
1answer
9 views

how to position/resize image after rotation using css/js so that the image is not positioned outside the div holding it or cropped out

Here's a jsfiddle i'm working on. The jsfiddle rotates an image upon button click by 90 degrees in clockwise or anti-clockwise direction. The rotated image is displayed outside the parent div when ...
0
votes
1answer
14 views

open angular modal from directive

I have a modal service to handle the opening and closing of popups. From a controller I simple inject the dependency and do the following: function LoginRegisterController($scope, login, register) { ...
0
votes
0answers
7 views

Yelp API, OAuth and Angular with JSONP only works once

So this question has been asked several times, but I believe I've finally boiled down exactly what goes wrong here. I'm using the Yelp API with Angular, which requires OAuth 1.0a to access. Like most ...
-1
votes
0answers
15 views

Check the position of paste content in content editable div

Is there any way to check if I paste data in the middle of a content editable div or end of a content editable div? Otherwise I check if any data is available next to where I pasted last? I don't have ...
0
votes
0answers
6 views

How to handling $resource:badcfg error?

I'm want to handle errors from $resource in my Angular 1.5+ application, but faced with problem that $resource:badcfg not handling, simple example: Goods.query({ folderId: $stateParams.folderId }, ...
1
vote
2answers
12 views

get Data from server and display it on select event using $http service and ng-change

I am new to Angular and would like to learn how to accomplish this task I have a dropdown that contains a list of LotType. When a Lot type is selected.I want to make an HTTP GET call to a web API ...
1
vote
1answer
39 views

ng change and ng select not working

So first the ng change is not triggering the search function. And the ng selected also no selecting the id = 0 option, is putting a blank option instead of selecting option 1. This is all contain the ...
0
votes
0answers
17 views

Fetch and display data from web service in ionic/angularJS

I am building an app using ionic/AngularJS. To test the web service calls I am using the best buy service. The response is as follows: { "from": 1, "to": 10, "total": 4665, "currentPage": 1, ...
0
votes
0answers
9 views

Back button in a child state won't show but is clickable, Ionic, Angular

I am new to Ionic and Angular. I came across this issue that I cant seem to solve. Could anyone help? So I have a parent state and a child state, in the child state the top left area is clickable and ...
0
votes
0answers
20 views

how to use angular-material dialog

I have been trying to get this work for a while with no luck. I cannot figure out how to use the templateUrl option. A modal does open, but it contains the index.html toolbar as the modal header? I ...
0
votes
1answer
32 views

calling a service inside a controller in angularjs

I'm working with ng-resource to do CRUD manipulations as following : app .factory('candidatureService',['$resource', function ($resource) { return ...
-2
votes
2answers
47 views

Identify Error in the below code

I'm getting error in the below code at line var f1.dob = new Date(), what may be the reason for the error. Also not getting output for table. Below is the Java script code: var ...
0
votes
0answers
13 views

Angularjs - Navigation function

I am using this function for to navigation between files html and is working ok. setTimeout(function(){ angular.element("body,html").animate({scrollTop: ...
0
votes
0answers
10 views

AngularUI Datepicker disable dates outside of range

I want to limit the Angular UI Datepicker to be between two dates passed in as variables. Preferably I'd like to get it working without adding a library like momentjs. Here is a working plunker of ...
0
votes
0answers
19 views

ng-model which uses ng-change not updated by ng-click

I'm currently having issues with AngularJS. By the code beneath i'm adding products to a cart array: QuantityChanged(product, currentQuantity); Next i have a + button next to this input field which ...
0
votes
2answers
14 views

Apply Angular binding on dynamic HTML

I'm new to Angular and maybe trying to use it in incorrect way, but.. I have this code - input to enter url and link to go to that url. <div> <input type="text" ng-model="url0"> ...
0
votes
1answer
15 views

Angular ui-router regex causing error

I have a regex pattern I need to match in ui-router (docs). I have a regexp tested outside of angular ready: (?=.*\d)(?=.*[a-zA-Z0-9])\w{8} I need 8 characters, one of which is a digit in any ...
1
vote
0answers
10 views

Add dynamically wysiwyg with textAngular

I try to add a WYSIWYG textAngular dynamically, but when I click on my button "Add description", I can't click on my second textarea (WYSIWYG with textAngular) index.html <div id="product-{{ ...
0
votes
1answer
12 views

Resize image in ionic cards

I want display a set of images with a description below. I chose to use Ionic cards. I got this result (the first image): While I want to preserve the same layout I have now, and add a description. ...
0
votes
1answer
22 views

Angularjs watch input change

I have an AngularJs component having bindings to heroes, which is an array. How to watch this input for array changes? I tried $scope.watch("heroes", ...) and $onChanges, but didn't work so far. ...
0
votes
1answer
19 views

Angular trouble with $http.get

I just started learning Angular and I am having trouble retrieving data based on a http-get request. It works when I simply retrieve all movies, but not when I try to retrieve movies based on a search ...
0
votes
0answers
5 views

Accessing Parent RouteConfig in Angular 2

I have an app with two child views that I've hooked up via routing in the parent view. When I set up router links for the views in the parent's template the app navigates just fine, but when I click a ...
2
votes
1answer
22 views

populating input box with values when editing contact angular

I am adding contacts to an address book. The user can then edit/update the contact. This works, you can add and edit addresses. What am I trying to achieve When a user clicks to edit an address I ...
0
votes
2answers
20 views

Angular2 : Redirect to a page at application startup

I'm facing a little issue for my web application in Angular2.. Each application launch, I would check if the user has a right of access. However I don't know how to redirect the user to the route ...
0
votes
0answers
14 views

Lazy loading Angular directives in ui-router as Webpack chunks

I am trying to lazy load an Angular directive as a webpack chunk. Here is my current config attempt at using ocLazyLoad: // Basic Config function routingBase( $urlRouterProvider, ...