AngularJS (a.k.a. AngularJS 1) 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 ...

learn more… | top users | synonyms (2) | angularjs jobs

-1
votes
0answers
7 views

How do I handle the server side part of ng-flow with rails

I want to use ng-flow to allow users to upload images, but I can't seem to find any examples for how to handle the data server side for rails.
0
votes
0answers
8 views

MongoDB: How to delete all instances the deleted object is referring to?

I'm following Thinkster's MEAN stack tutorial (https://thinkster.io/tutorials/mean-stack), which doesn't tell how delete operations should be implemented. I currently have the following schemas: var ...
0
votes
1answer
14 views

Error: [$injector:unpr] Unknown provider: $resourseProvider <- $resourse <- Phone Angular factory

I am having problem while injecting resource. Error: [$injector:unpr] Unknown provider: $resourseProvider <- $resourse <- Phone This is my code index.html <script src="...
0
votes
1answer
11 views

Angular Http Post in Safari Hitting Different url than Chrome

I'm using angulars and the built in $http directive to post to our API end point. It works in Chrome but I am having an issue in Safari. Here's the call from my Api factory: assignments: function(...
0
votes
0answers
7 views

Fire base ReferenceError: Firebase is not defined

Im working on a angular tutorial that uses the boilerplate Angular-seed and firebase My error is ReferenceError: Firebase is not defined This is my contact.js where my error is being refernced ...
0
votes
1answer
16 views

Angular $scope.$broadcast Event Only Executed One Time

I have two pieces of code in two seperate JS files; one triggers an Angular $scope.$broadcast event, and the other an $scope.$on listener. First file snippet: $scope.triggerMyEvent = function(){ ...
0
votes
1answer
16 views

Use of getPreventDefault() is deprecated. Use defaultPrevented instead Angular JS

I'm trying to learn AngularJS and I can't even get it to properly run on my system when copying code from their documentation. When I do I get the error: Use of getPreventDefault() is deprecated. ...
0
votes
1answer
9 views

$mdDialog when invoked send aditional request to api

I use mdDialog for creating new objects in my web application. Whenever I invoke mdDialog, it always invoke all methods which I have in my angular controller. How can i prevent it? Here is a short ...
0
votes
2answers
39 views

Angular Two-Way data-binding not refreshing ng-repeat on $scope change

My functionality is very simple, and I have to imagine very common. I have a page that lists a collection of 'age groups', and provides functionality to add an 'age group'. I simply would like to ...
0
votes
1answer
17 views

Jasmine Unit Test: Unexpected request for template. ngPug2Js

Background Karma/Jasmine is unable to find my html templates, in spite of the file names matching and are being included into the karma browser. karma.conf basePath: './', ...
0
votes
1answer
10 views

Bootstrap.navbar + Angular.routeProvider not working also not giving any error in chrome

I have posted configuration for routeProvider and navigation for it using bootstrap nav-bar but its not working also I don't get any error in google-chrome, url http://localhost:8080/collegeCap/#!/#...
0
votes
1answer
13 views

How do I bind an angular 2 event to an svg object?

I have the following html: <svg:g *ngFor='let knob of knobs' > <svg:path id="arc1" fill="blue" stroke="#446688" stroke-width="1" fill-rule="nonzero" draggable="true" [attr.d]="knob" (...
0
votes
0answers
7 views

Angular and Express account activated

i have angular code User.activateAccount($stateParams.token).then(function(response) { $scope.errorMsg = false; if (response.data.success) { $scope.successMsg = response....
0
votes
4answers
42 views

Angularjs join two objects

I have two objects: obj1 = { 'id1': 1, 'name1': 'anyone1', 'birth1': 22, 'year1': 1993 }; obj2 = { 'id2': 1, 'name2': 'anyone', 'birth2': 22, 'year2': 1993 }; And I would like to create a Array ...
0
votes
1answer
38 views

$http request returns data only if I wrap inside a $timeout

I have a problem here, whenever I am clicking the button which is inside the component, I see that I am making the $http call and I don't get the response in the console, but in browser I see the call ...
0
votes
1answer
15 views

Angular smart-table fail to render collection based on objects list

I converted my Items Array into an indexed object using underscorejs: $scope.items = _.indexBy($scope.items, 'id'); And now my items looks like this: $scope.items = { "1": { id: 1, ...
0
votes
1answer
32 views

ng-modal in ng-repeat issue

Below is my code, I have 3 inputs and a view button where upon clicking view I will be getting data from server. 3 inputs are Customer, Date, Shift and I'm keeping this 3 inputs in a ng-repeat where ...
0
votes
1answer
25 views

Loading hosted third-party JavaScript into Angular 2 component

I need to add a hosted third-party JavaScript file in an Angular 2 component. This file is updated anytime a change is made in the associated third-party vendors proprietary system, so I cannot ...
-3
votes
3answers
33 views

How to share rows between two tables on the same page

I want to do something like this: As you can see they must be in the same html page and should transfer rows without refreshing the entire page again. Someone can give me some help?
0
votes
2answers
25 views

How to get HTML from iframe in angular

I want to get HTML code of header from iframe and put it to angular app. It's looks like: iframe: <div id="event-details-wrapper"> <div id="event-details">Header</div> </div&...
2
votes
2answers
18 views

properly display json in table angular

i have an api which return me a json array: {"i":11,"j":12,"iterationNumber":9,"results":[12,6,3,10,5,16,8,4,2,1]} how can i make a table in angular, so the data is displayed correctly? currently i ...
0
votes
2answers
13 views

AngularJS reload service when network status Offline

I need you help. I am trying to refresh a service in case there is no network. When it's OFFLINE, it works. But when it returns to ONLINE status, it loses the internal code when it returns a success ...
0
votes
0answers
17 views

How can I load an AngularJs app only after API response?

I have an Angular application. I need it to load ONLY after a succesful call to an API which returning data is needed for said app. Is there a way to achieve this within Angular itself? Ideally it ...
0
votes
0answers
7 views

angular-ui-grid - no gridTestUtils.spec.js

I'm using angular-ui-grid 4.0.2 (the latest version) in my project. According to the documentation here: http://ui-grid.info/docs/#/tutorial/403_end_to_end_testing. There should be some sort of ...
1
vote
1answer
26 views

ng-style not updating the style attribute of div

http://plnkr.co/edit/PuP3f71kCjkqgjjMkgNS?p=preview I have an ng-style="tghov.top" on my tags-modal however it's not translating into style="top:50!important" in the markup. this.top = { "top" : "...
0
votes
2answers
19 views

angular: calculating age base on date of birth

I am trying to calculate age based on the date of birth but for some reason it is working properly. Here is angular code: Data is coming from http request. $scope.dob = data.dob; sample data - ...
0
votes
0answers
16 views

How to open a already created html model dialog using angular js function

I'm trying to invoke a an already created html angular modal dialog using angular js function. Following is my Code: <div class="modal fade" id="myModal" role="dialog" modal="showModal"> <...
0
votes
1answer
11 views

Error: [$sce:itype] Attempted to trust a non-string value in a content requiring a string: Context: html, while display currency symbols

I am trying to display currency symbols using their unicodes in angularjs. I created an array of unicodes, and used ng-repeat for displaying each currency symbol. I also used Strict Contextual ...
0
votes
0answers
9 views

IdentityServer4 oidc w/ angular2 Guard Always False

I have identity successfully authenticating a user, it passes the user back to the main site which runs <script src="https://cdnjs.cloudflare.com/ajax/libs/oidc-client/1.2.2/oidc-client.min.js">...
0
votes
0answers
16 views

Chrome is auto filling a form with the wrong data

I have a form on my register page that allows a user to create their account. If the create account request is successful my angular redirects the user to the login view. When the user lands here it ...
0
votes
1answer
10 views

change ionic icon color by angular

I am trying to change ionic icon color. Like online(green), Idle(amber) and offline (Gray). So basically i am fetching the data by http request and it is working fine. It is showing the correct data ...
1
vote
1answer
17 views

AngularJS - API Call in a Loop - getting the max value of an array and setting a response

This is my first time here, and I am really lost on what to do. So I have a loop where I am making a post request to an API. I need to send some questions and get their rates match back. After that, ...
0
votes
1answer
20 views

angular route getting problems

i'm trying to use ngRoute to config my routes on my app but for some reason, it still not working. i've searched a lot and seems my code is ok. i'm gonna show how i'm doing it: my a.href: <a href=...
0
votes
1answer
36 views

AngularJS not able to route to different page

I have a simple web project that has a phone list and each element in that list contains a phone detail information. If I clicked on a phone id, it should bring me to a page for that phone only, ...
0
votes
1answer
7 views

$uibModal not working in Angular using es6

Portion of my index.html showing i have included angular and angular ui bootstrap both. And they are loading fine , have confirmed that <script type="text/javascript" src="bower_components/angular/...
0
votes
1answer
13 views

Post SQL data to Angular View with NodeJS

I'm having a difficult time posting data retrieved from a server using mysql with node. I have connected to my db successfully, and I can return the data I want by console logging it to the CLI when ...
1
vote
2answers
20 views

angularJS what's a good way to put dictionary in input

I have a dictionary of data in the controller and I'm displaying it using ng-repeat. The key is the Title and the value is placed as the value field of an input. I want the user to be able to edit the ...
1
vote
1answer
33 views

Angular div tag attribute with no equals

I apologize if this is a duplicate. I see in some people's code, they have something like this: <div ui-grid="myUIGrid" ui-grid-selection ui-grid-resize-columns class="grid" /> What is ui-grid-...
1
vote
0answers
28 views

How to create a “back” button to an edit form for AngularJS Datatables using a form directive

I created a grid using AngularJS Datatables and added two more buttons "edit" and "delete" in the last column. How does the grid/table is rendered? HTML <!-- Required CSS and JS --> <link ...
1
vote
2answers
46 views

Complex regex in AngularJS controller

I am trying to add a regular expression in my AngularJS controller that validates the four following conditions in a text input box: A) name (space) name, B) name,(comma) name, C) 123456789 (max of 9 ...
0
votes
0answers
15 views

Get Android soft keyboard 'Done' button appear in web SPA

I am writing a SPA Web Application using AngularJS (not using Ionic) and I have a form that looks like this. <form ng-submit="submit(myData);"> <textarea name="myDataTextArea" id="...
0
votes
1answer
18 views

What is the correct http verb for Django REST partial_update

Im trying to perform partial update in DRF using angular $http. In my DRF model viewset i override the partial_update function (server side). class AnimalTreatmentViewSet(viewsets.ModelViewSet): ...
0
votes
0answers
18 views

Owl carousel 'data-img-zoom' not working with Angular data

I am using owl carousel but the 'data-img-zoom' does not work - It does work when I use hard coded paths to an image. <div class="owl-carousel owl-nav-over" id="product-gallery" data-toggle="owl-...
0
votes
2answers
35 views

how to use Angular to call ajax and populate content from the return (after page has already rendered)

I am a backend API developer, new to AngularJS (version 1), which is what my current assignment is written in. The page has ng-app="app" found in the <html> tag, and ng-controller="...
2
votes
2answers
19 views

Angular ng-repeat filter: ¿How to specify filter fields?

Ok, looks easy, but not. I want to perform a simply angular filter, but i need to specify which fields of my array use in filter. A Basic filter is: <li ng-repeat="person in app.people | ...
0
votes
1answer
18 views

Angular $location search does not work always

I'm having a problem I can't seem to understand why it is happening: I have an angular app where one of the routes is defined in the route provider as .when('/pageA/:item1', {templateUrl:xxx, ...
0
votes
0answers
12 views

Error message [null] or [null,null,null,null] when using browser.actions protractor

Ever since updating to 2.27 I'm seeing this issue. No stack trace the error just looks like: 1) Scenario: User goes back to search results - features\headerNavigations.feature:31 Step: When I ...
0
votes
1answer
16 views

JPA collection saving id, but not other fields

So, I have a JHipster generated application with a number of entities and collections, amongst the main entities I have the Study, which has a number of collections. One of them is the StudySites, it ...
0
votes
1answer
19 views

PushService.initPush.then is not a function

I am trying to have a service return a promise, but keep getting PushService.initPush.then is not a function Here is my service: app.service('PushService', function($log, $q, $ionicPopup) { return { ...
0
votes
1answer
14 views

How to display grouped by multiple data in a specific places in a table

I have retrieved data that I grouped by multiple within a ng-repeat directive using AngularJS filter and want to display the grouped data in a specific cell of the table. Here is my HTML code: <...