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)

0
votes
0answers
2 views

return promise shows error in angularjs?

I have a service that uploads images from an array to cloudinary.But when array is empty how can I return function without execute $http call.My code below uploadPicture: function (files,title) { ...
0
votes
0answers
8 views

Unable to change views using dropdown. I am able to get the dropdown but clicking does not change the view

In my application there are different views, so I've a dropdown from user can change view. I'm able to view the dropdown but I'm not able to change the view by clicking it. This happens in chrome, and ...
0
votes
1answer
18 views

input type file is unable to get the file name with file type in angularjs

I am creating a web app in which i have an input field <input type="file" ng-model="getfilename" /> and a button <button ng-click="clickfordetails()">Click Here!</button> and ...
1
vote
1answer
16 views

how to update factory array in controller

i am new to angularjs, for my project developmemt i have a function which is common to all fields, so write a factory and place that function in that factory, function is calling form controller upto ...
-1
votes
0answers
14 views

Error: Unexpected token } in JSON at position 414 in Angular using ionic 1

I am creating android app using ionic 1 and angular js. This is first time I am observing this issue.The issue is am running my project using command 'ionic serve'everything is working fine(app is ...
0
votes
1answer
21 views

How to append Parent and child div on div element in angularjs?

I am newbie in angularjs. Here I added my requirement as image. In side my controller I need get selected element and in runtime in need to add div's based on the source will diced parent or child. ...
0
votes
1answer
18 views

Angular Service $http request for single post

I am trying to make a $http request to get a single post from my service to a route. I get an internal server error on the single post request. It wants an integer. So if I change /posts/:id to ...
0
votes
2answers
14 views

unable share data across the controllers

I am building a SPA with angular and I have two controllers, and want to share data within them. using service/factory i am unable to share data. bellow is the codes. /*this service is a helper ...
0
votes
0answers
11 views

Good eclipse IDE for javascript development with package manager

I have JavaScript/AngularJS project with bower as package manager and grunt as task manager. Which eclipse IDE will be good for this? I tried eclipse neon , that has npm and bower install support. ...
0
votes
0answers
6 views

Deos Ionic swiper plugin available?

Is there any ionic plugin that provides swiping or sliding pages options such as "hike" news pages and "way 2 sms" app news ?
2
votes
1answer
18 views

<md-icon> icon formats used to create the md-icon other than svg

In Angular Materials md-icon attribute md-svr-src , is there any other format other than svg available for i have tired to include the ico format to create the angular material icon ..is there any ...
0
votes
0answers
28 views

Unable to select item from dropdown when row is draggable (ng-drag) in angularjs

<tr ng-repeat="dr in vm.funds" style="cursor: move;" ng-drag="true" ng-drag-data="dr" ng-drop="true" ng-drop-success="vm.onDropComplete($index, $data, $event)"> <td>...
0
votes
0answers
13 views

Angular 2 Frontend with Active Record Association in Rails 5 API

Please help I have an API App in Rails and its huge part is dependent on Active Record Association, I want to understand how to consume relationship between active record models rendered by Rails API ...
0
votes
0answers
16 views

Angularjs + bootstrap remote modal window not working

If I am doing this its because I couldn't find a real solution yet. I have this guy similar problem: Calling AngularJS function from a remote page loaded by Bootstrap modal his "solution" ...
-1
votes
0answers
17 views

Access array key in ng-repeat [duplicate]

In javascript for (key in groups) give the indices of the array groups. While using angular, I am looping through an array of items using ng-repeat: <tr data-ng-repeat="group in groups"> &...
-2
votes
0answers
14 views

Interactive website using Firebase

I have a requirement to create an interactive website using Firebase as the database. I read SignalR, AngularJS are used to create websites. Which one (language) is the best to use to create a website?...
0
votes
5answers
35 views

Result not Displayed with $Scope

Here is simple HTML with Angular js controller <!DOCTYPE html> <html data-ng-app=""> <head> <title></title> </head> <body> ...
0
votes
1answer
24 views

How to properly bind object in 'bindings' using $compile in angular.js 1?

I want to dynamically compile component for inserting this to specific DOM element (DOM also dynamically created by 3rd party library). So, I use $compile, $scope. https://jsbin.com/gutekat/edit?...
1
vote
0answers
27 views

Returning a JSON object from a slim php

I'm trying to return a JSON object from a call to a slim PHP function. It returns the object like this: if (count > 0) { echo json_encode(array("status" => "greater")); } else { echo ...
0
votes
0answers
16 views

Get two Url same time

when I try to get url from two json files, then you will like one work while the other appears to error 500. If for example, I print the same url igemme of the way so there will be no errors. It is ...
0
votes
3answers
32 views

On click Angular function won't work

I want to launch a new page when a cube is clicked using Angular. My code is currently not doing anything when I click the boxes so I might have everything wrong. My on-click function is: $scope....
0
votes
0answers
6 views

How can I enable strict di mode in Angular unit tests

I'm using karma and noticed that while running unit tests, I do not get the error is not using explicit annotation and cannot be invoked in strict mode And instead get the error. Unknown provider ...
1
vote
0answers
12 views

angular-moment-picker is already opened on load and when selecting date it doesn't close

I'm using this date picker for angular https://github.com/indrimuska/angular-moment-picker when the page loads, the picker is already opened at the bottom, and when I click on the input, it shows the ...
1
vote
0answers
17 views

Get contents of a web directory with angularJS

Say I have a web dir someserver.com/json/ that has directory listing enabled. And say in that directory I have several <vcenter name> directories. And say that in each someserver.com/<...
2
votes
2answers
16 views

How to pass an Angularjs variable to an html input id?

I'm adding checkboxes with angularjs ng-repeat like this: <div class="checkbox-circle" ng-repeat="t in tenders"> <input type="checkbox" checklist-model="contratacion.select" checklist-...
0
votes
0answers
10 views

angularjs-slider customizing labels/ticks

I'm using angularjs-slider and I want to set it up a particular way. Haven't found a solution or workaround. I want: 2 labels 101 positions (i.e. ticks, but not visible) a variable precision of 0, ...
0
votes
0answers
32 views

Check Array length - giv me a [0] in array

that's how I'll get some data via get url, it appears on the page. But when I eg select two or just one. When I get elected them I need / set as the me this: Array[0] Angularjs: var url = "/...
0
votes
0answers
10 views

How do I get ion-autocomplete to filter properly with the specified query?

I'm using ion-autocomplete from https://github.com/guylabs/ion-autocomplete. What I'm currently trying to do is use the callbackMethod specified in ion-autocomplete and return a list of contacts from ...
0
votes
0answers
4 views

Purify ads blocker breaks ionic popup

I'm having issues with Iphones that have purify ad blocker installed, when purify is enabled, the app is not able to show the modal and gets frozen. Is there a workaround to show the pop up ? if not, ...
0
votes
0answers
6 views

Ionic background thread

I managed to retrieve JSON data from a server by calling an API. However, due to the JSON data is large, it takes 5000ms+ to retrieve all the data. Therefore, when I run my app on Xcode simulator, it ...
0
votes
1answer
20 views

Check if the email is taken through Angular Js

I have a directive which check if the email typed is available or not, the validity works fine, i get the right error message if the email is taken. If not, i don't have any message which is great... ...
-1
votes
1answer
23 views

Removing attribute when writing file to JSON

I have requested data from an API which is returned in JSON format, then written to a JSON file stored on a web server. I am then displaying filtered contents from the stored JSON file to a webpage ...
2
votes
1answer
20 views

Where to implement Entity Framework database transactions in modern web applications?

Let’s assume that the primary components in your application are an Angular client, which calls an ASP.NET Web API, which uses Entity Framework to perform CRUD operations on your database. So, for ...
3
votes
0answers
33 views

Immediately Invoked Function Expression with Angular 1 throws exception

I was reading the Angular Style Guid and it recommends using Immediately Invoked Function Expressions (IIFE). When I converted my app to use it, I started getting an exception at runtime everytime I ...
1
vote
0answers
21 views

How to activate and update a sub state of a module using Angular ui-router

Above is a simplified drawing of our app, basically it's 1 large view: /dashboard. The TagsPanel is contained within the dashboard, along with other modules. What I'm trying to figure out is how to ...
2
votes
1answer
34 views

AngularJS why returning a bool from a function is not the same as a property?

I usually return true/false from a function and pass that function into a property, but in this case it is not working. For example: Passing false into isEnabled works: $scope.myDropDownConfig = { ...
0
votes
0answers
16 views

Error in [at-loader] Cannot find module './app.component.ngfactory'

My error is as follows: ERROR in [at-loader] assets\app\app.module.ngfactory.ts:28:27 Cannot find module './app.component.ngfactory'. After I ran npm run build the app.module.ngfactory.ts was ...
1
vote
2answers
49 views

How can I check if two array contains the same value, even if they are in different indexes?

I'm working on a personal project and I'm stump in the last part. I'm trying to only get the data for companies that have the same name of the companies in my database. My goal at the end is to ...
0
votes
2answers
18 views

Ascribe string to variables Angular Javascript

Here's my json : [ { "name": "1QQQJohnQQQ11_22_1998", "age" : "ads" }, { "name": "2QQQEvaQQQ05_01_1989", "age" : "ads" }, { "name": "...
3
votes
1answer
42 views

AngularJS - problems with angularJS route

I'm having a problem with angularJs, basically when I press the link it doesn't change the page, can someone please help me? // app.js var app = angular.module("geral", ["ngRoute"]); app....
0
votes
1answer
9 views

Nested templates using ui-view

I'm trying to display a nested template using ui-view. AngularJS routing config angular.module('myApp') .config(['$stateProvider', function ($stateProvider) { $stateProvider ...
1
vote
2answers
24 views

disable button if none of the options are selected angularJS

I would like to disable the add button if none of the options in the list are selected or if the selected class is not there in the list. HTML: <div ng-repeat="json in myJson" ng-class="{'...
1
vote
0answers
13 views

AngularJs, WebAPI, JWT, with (integrated) Windows authentication

I've asked a question before and the answer that was given was correct but the farther I go down this rabbit hole the more I realize; I don't think I was asking the right question. Let me just ...
1
vote
0answers
19 views

Hide/Remove an extra dropdown widget from jQuery ColumnFIlterWidget plugin in Angular Datatable

Basically I am trying to achieve 2 things here. I am using columnFilterWidget.js jQuery DataTable Plugin here for column filtering. I am having some issues in "Excluding" one Extra dropdown which is ...
2
votes
2answers
22 views

Strip JSON tags when rendering object data in angular

I am rendering This piece of JSON(1) using angular.js 1.6, The title and description seem to load, however I am unable to get the url from the images property, it currently displays it like this : &...
0
votes
1answer
12 views

in angularjs when modal closes goes back to home page

I have a modal display when the user clicks an icon on the main menu. It is in the header template html. This is the code: <li class="navButton" style="float:right"> <a href="#/...
0
votes
1answer
17 views

watchgroup doesn't fire but watch does

I can't get my watchgroup to fire when my model scnListing changes but it will fire when it in a watch...My other two models (chartTyp, yAxistm) in the group do trigger the watchgroup but changes in ...
0
votes
0answers
16 views

ui-router html5Mode doesn't like hrefs to static html files

When using ui-router without html5Mode (using hangbang URL syntax), anchor tags that do a full page refresh to other pages (or static html content) using hrefs are working properly. As soon as I ...
0
votes
2answers
31 views

Function parameter undefined inside ng-click

I already checked other questions but I didn't solve this issue. Here is my entire code: http://codepen.io/tiuscia/pen/qqLQNd I have a function inside the controller that I call without parameter ...
0
votes
1answer
15 views

Grabbing status updates via WebApi and AngularJS?

I'm trying to determine the best/reliable way to configure my angular application so that I can submit requests to a webapi, and periodically check the progress of the logic running on the server. ...