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

How to populate value in selectbox using angularjs with same ng-model

I have two select box div for gettting scoredetails home teams and awayteams first and second innings These two div are come in tabs only So i need same ng-model in both innings for code reusing.but ...
0
votes
0answers
5 views

How to customize Line Chart yAxis label in angular-chart.js

Use angular-chart directive. i want to add 'k' in y-axis label like '24k' now like 24000 is very bad look in UI. <canvas id="line" class="chart chart-line" chart-data="data" chart- labels="labels"...
0
votes
1answer
15 views

angularjs with ui-router, states getting confused

I have 2 states; viewOrder and saveOrder. Their definition looks like this: $stateProvider.state('viewOrder', { url: "/orders/:orderNumber", templateUrl: 'tpl/orders/view.html', ...
0
votes
0answers
19 views

Store values to sql database from html forms cloned with javascript by user

In this site, I want the user to have the ability to give as input as many "parts" as he likes (along with other info, like category, value). This is what i have so far: <?php if(!isset($_SESSION)...
0
votes
0answers
5 views

$firebaseArray inside of a $firebaseObject?

Using AngularFire, if I am using a $firebaseObject where one of the properties of the object is an array, is it possible to represent that array as a $firebaseArray so that I can access the API and ...
0
votes
1answer
24 views

How to sort string date angularjs

How sort string date format 24.01.2017 ( descending ) I tried with Date.parse('24.01.2017'); -> but incorrect format How sort date like this? in controller or view Thanks Getting data from api ...
0
votes
1answer
14 views

Making request to remote server from localhost getting preflight Request 'Access-Control-Allow-Origin'

Complete error is this: XMLHttpRequest cannot load http://ip:port/path. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on ...
1
vote
2answers
30 views

Better way declare a controller in AngularJS module?

I had observed that inside AngularSeed, some controllers have the following format: angular.module('myApp.controllers', []). controller('MyCtrl1', [function() { }]) .controller('MyCtrl2', [...
0
votes
1answer
21 views

Access form inside controller

Here is my full code: <html ng-app="myApp"> <head> <script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.8/angular.js"></script> </head> <body ...
0
votes
0answers
24 views

Trigger a click on a element onload [duplicate]

Angular.js How can i trigger a click on a first group ---> first item ---> first '.preamatchGame' element <div class="first" ng-repeat="group in groups"> <div class="second" ng-repeat="...
0
votes
0answers
7 views

Trying to capture Date and time when a specific field in a single record while updating using angularjs with spingdata

I am trying to show captured date and time for updating the record,as it is displayed when input field is text but it's not displayed when input field is date and becomes like null.i have written code ...
0
votes
0answers
8 views

$cordovasocialsharing shareviafacebook behaves differently on iOS than Android

I am working on an ionic application where I am implementing social sharing feature using $cordovasocialsharing in ng-cordova.On Android I can share the information with particular friend but on iOS ...
0
votes
4answers
35 views

Looping through the json service response in Angular JS

I am working on a angular project. i have a scenario where i need to list some details in a page of the application.I have a service call in the page which returns the following json structure. i want ...
0
votes
1answer
21 views

angular ui-router resolve if params set

I would like secure my route access by redirect the user if no params send. to prevent direct url access. I can do that in my controller but i have in my resolve some web service call. the goal is to ...
0
votes
0answers
14 views

Ionic controller issue

I am using Ionic to develop a hybrid app, but I found an issue. When I view a page with list, I click one list-item to go to another page, and use history to go back, I found that the list-page's ...
3
votes
1answer
25 views

Can we use Angular Material v1.x with Angular Js 2.x ?

I am migrating my existing project from Angular 1.5 to Angular 2. I have used Angular Material 1.1.1 with Angular 1.5. Is there any way to keep using Angular Material v1.1.1 with Angular 2. The ...
0
votes
0answers
8 views

Firefox WebExtension angular routes links not working

I'm working on a Firefox WebExtension. It's a single web-page application created with angular js. The problem is that i've got "File not found" error when i'm using link with angular route for ...
0
votes
1answer
23 views

Update AngularJS component when bindings change

I have a parent component <lookup-table></lookup-table>, which has a the following template: <td> <whois domain="{{ $ctrl.query }}" extension="{{ ext.name }}"></whois&...
0
votes
0answers
11 views

PouchDB: how to detect server down?

I am trying to detect when the CouchDB server is down, from within my Ionic1/PouchDB app. The app has a live/retry synchronization between PouchDB 6.0.7 and CouchDB 2.0. I am listening to all PouchDB ...
-3
votes
3answers
28 views

Angular JS ng-show expression not working

Condition is not working properly <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script> <span ng-show ="myAngApp1.vlaue == customer....
0
votes
1answer
28 views

Can i pass a $scope variable from one function to another function inside the controller ? AnglarJS

is it possible to pass a $scope variable to another function inside the controller ? the first function is a POST request which included the id. the second function is a ng-click function which ...
0
votes
0answers
8 views

Custom Tabular Check box validation

I have a requirement in which I have to display check box in a row (Tabular way of displaying). I could not use the default checkbox implementation which Ionic provides due to some issue while ...
0
votes
1answer
23 views

Javascript - Protractor - Clicking a checkbox terms & conditions?

I'm very fresh to the angular testing and please help to write the protractor angular e2e testing code to below term and condition checkbox. create profile button will be enable when the check box is ...
-1
votes
0answers
36 views

In angularJs how to call two $http method with $scope [on hold]

angular project, and I need to call two links to manipulate the json of them, i used $http returning a $scope but could not do with two links. myApp.controller('ControlerName' ['$scope','$http', ...
-2
votes
0answers
24 views

How to develop a resource booking scheduler [on hold]

I want to develop a room booking scheduler with a timeline view as in the picture. scheduler I need guidance on how to go about developing it like the part how to attach the rooms and their booking ...
0
votes
3answers
20 views

How to show Notification popup only once in Angular.js?

I'm working on Angularjs. I need to show the notification popup only once, but my popup is showing multiple times as i enter values in textbox. Here is my piece of code. $scope.AmountAddition =...
2
votes
1answer
23 views

AngularJs datatable plunker not working

I'm new to plunker/ jsfiddle and trying to create plunker of Angular Datatable Selecting rows but it is not working according to given tutorial. Here is my plunker : https://embed.plnkr.co/...
0
votes
0answers
7 views

Where to place Web.config rewrite rules

I'm trying to add a rule to my Web.config in order to have the browser update files which have changed, to prevent "old" version of the site been shown due to browser caching. For this I've found ...
0
votes
0answers
14 views

How to create datepicker directive in angular 1.x?

This questions seems very wiered. I deeply apologize for it. But its been 1 week now to get good understanding of angular directives. I have gone through some good posts but still my understanding ...
1
vote
4answers
37 views

First element of a ng-repeat imbrication

AngularJS How can i get first element and add class 'active' automatically . There is 2 ng-repeat , I want get first group --> first item --> first element and add class. <div class="first" ng-...
0
votes
1answer
17 views

How to add repeat event in ui-calendar

I am using http://angular-ui.github.io/ui-calendar/ in my application. I want to add birthday event that repeat each year. for example student 1 birthday is 12-jan-2006. $scope.birthdayEvent = [ ...
0
votes
0answers
9 views

How to switch views in routing? Can we call a directive in templateUrl of routeProvider?

I want to switch a view based on a flag (flag will be set at the time of user login in cookies) while routing. Something like that: $routeProvider.when("/editTest/:ID", { ...
-2
votes
1answer
26 views

How to validate Infinity in angularjs?

Here I want to restrict if a variable is infinity. if(!isNaN(response.MonthlyPayment) && !isFinite(response.MonthlyPayment)){ //do here } Here the infinity is not ...
0
votes
1answer
17 views

Routing between Angular & Laravel

I am trying to make a simple App in Angular , integration with Laravel 5 and facing issues while routing the application views. Routes.php looks like as below: <?php Route::get('/', function () {...
0
votes
0answers
10 views

ReferenceError: Can't find variable: JSZip in Controller.js

I've used the JSZip.js to compress and download some files, it works fine. But while testing i keep getting an error: ReferenceError: Can't find variable: JSZip in App/Search/DeviceController.js ...
0
votes
0answers
13 views

Mock Lodash orderBy method using Jasmine

My AngularJS directive includes a call to the Lodash orderBy method and I need to mock it in the unit test. The Karma config includes Lodash in the list of files to be loaded in the browser. ...
0
votes
0answers
18 views

firebase.database().ref().key() is a not function in firebase version 3.6.4?

I am currently using firebase version 3.6.4 and pushing data into realtime database following that I am retrieving the new inserted key using key(). but what I am getting is error saying firebaseurl....
0
votes
2answers
18 views

annidate variable undefined - angular

I have a annidate variable like that. $scope.a = { b: {c : 1} }; var test = $scope.a.b.c; // test == 1 $scope.a = {} var test = $scope.a.b.c; // ERROR I want test variable will ...
-2
votes
0answers
16 views

WhatsApp returns angular expression when pasting/typing URL

We are using angularJS for handling front end. We've set Meta keywords, description, title values through angularJS. When i paste the URL in WhatsApp, it returns expression like {{ meta.title() }} ...
0
votes
0answers
13 views

How to remove column lines from chart.js

How can i remove vertical light-gray lines ( attached below) from angular-chart.js
-2
votes
3answers
18 views

How to get the query parameter from the requested URL in Angularjs?

I want to take the last value in this url: http://localhost:60954/Home/Index/3 I made this angular app but the object is always undefined var app = angular.module('myApp', ['ngRoute']); app....
0
votes
0answers
12 views

Masonry bricks slip on each other sometimes on android

Some time on app startup it renders badly. I guess it's because masonry loads before it know how much space is needed on the DOM but no clue how to solve it. Tested on android 5 and 6. I'm using this ...
0
votes
4answers
27 views

How to Hide elements based on id in ng-repeate

How to hide an element based on elements id, I tried to hide the element without using: document.getElementById('lis'+divId).style.visibility = "hidden"; but this worked while using individual ...
0
votes
1answer
13 views

Angular Module 'angularSpinner' is not available

I have a simple app where I want to add a spinner. I have followed the instructions from the documentation page on github and for some reason I constantly get: Failed to instantiate module ...
0
votes
1answer
11 views

Angular: Copy the value on the input box and place inside href=“sms:?body” attribute

I'm trying to figure how I can copy the value from input box and place inside *href="sms:?body" It is a dynamic value that changes every time a user creates a new account. As shown in this image, once ...
1
vote
1answer
18 views

Update Ionic UI element with callback

Stroy: I am doing small mobile application with appery.io which will scan qr code and according to value hide/show a button. Problem: button will hide when i change the variable(name:hide) boolean ...
0
votes
1answer
22 views

Passing div id to directive in angular

I have the following directive: .directive('addfields',function($compile){ return function(scope,element){ element.on("click",function(){ var enviroElement = angular.element('<enviro-...
-1
votes
1answer
11 views

connect accordian heading and body through href and id

I have created a bootstrap accordian. When i click an accordian heading, it should show the body contents. I am providing the values dynamically(scope variable) for href and id attributes using ...
0
votes
1answer
15 views

Create a handsontable in ng-switch

I would like to use a handsontable inside a ng-switch: when we select handsontable, it shows a normal and editable handsontable. JSBin HTML: <!DOCTYPE html> <html> <head> <...
0
votes
2answers
22 views

$setPristine is not a function

<form name="inputdata" ng-submit="saveStudentInfo(student)"> <div layout="row"> <md-input-container flex="50"> <label>First Name</label> <input ...