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)

1
vote
1answer
21 views

AADSTS50058 when calling AAD causes refresh loops

sometimes i'm getting error AADSTS50058 when calling Azure Active Directory Graph API from Angular. my setup : adal-angular 1.0.13 angular v1.5.8 google chrome with no flag on 'Block 3rd party ...
0
votes
0answers
3 views

How to make object (li element in ng-repeat) move DOWN on click - angularJS

i have problem to make a function on click event when is checkbox selected (equal=true). when user select checkbox and click on buttonDOWN i want that element move down (DOM MANIPULATION) i already ...
0
votes
0answers
32 views

Angular Input click causes blur

All, In my Angular (1.5.9) SPA, I have a model where the user selects from a dropdown list and an element is rendered based upon the selection them make. This works, however when the user interacts ...
27
votes
13answers
29k views

Ionic - How to remove sidemenu on login page only?

I need to remove sidemenu only on my login page. Otherwise remain. How it can be done? I'm using command ionic ionic start myApp sidemenu to create the project. app.js .config(function($...
1
vote
1answer
29 views

JSON & angularjs. Filter an array by ID (and not by index)

How can i filter this JSON by an element (in this case the id) without using the index? ABC: [{ id: "good", element2: [ {element3: "hello", element4: "bye"}...
0
votes
0answers
6 views

MD-Select with ng-change without closing the selection

I have an md-select element (multiple) and want to achieve the following: On Any Change, a controller function should be called The Selection should not close when doing so If i use ng-change, the ...
1
vote
3answers
25 views

How update view in Angular(avoid $apply already in progress)?

I want to show button(Some Button) while some logic is doing in my app, and then hide this button. By clicking Some Button I call expand() where set data.loading to true, at this point I want to ...
0
votes
1answer
22 views

How i will get to know in routeChangeStart event event triggered by JS or click

Main.js $routeProvider .when('/home', { templateUrl: 'home.html', controller: 'StudentController' }) .when('/viewStudents', { templateUrl: 'viewStudents.html', ...
0
votes
0answers
31 views

bootstrap modal behaviour on mobile phone keyboard popup

i have problem with angular strap aside OR bootstrap modal while using mobile phone. When i click on input box, keyboard popups and overlaps with input box, instead of scrolling up. image before ...
0
votes
0answers
4 views

How can I use one daterange picker plugin for two fileds?

I want to use this daterange picker plugin to http://www.daterangepicker.com/ open for two fields start date and end date. Right now it only opens for one field. Is there a way to achieve it on two ...
3
votes
1answer
77 views

Angular2 load script conditionally using Angular CLI?

Can I load scripts conditionally using Angular CLI??? In this file, I want to load one script depending on the enviroment or a variable. So In production I want to load a script while in develop not. ...
0
votes
1answer
16 views

angular same height directive not working

I have created a directive so that the columns in a bootstrap row are of same height. Here is the code - http://jsbin.com/waxoboloqo/edit But it is not working. Can you please fix it ? Html code: &...
-3
votes
2answers
25 views

Regex for accepting Aplahanumric and Numeric, but not Alphabates

I want the regular expression in java script which accepts both Alphanumeric and only numeric, space and period is allowed. Acceptable: Hello Mr. 3367 6576567 55 3432 abc 3333333 ending in......
0
votes
1answer
23 views

AngularJS Ionic $q.all not executing inside Factory

I have this problem using $cordovaCalendar plugin. I can use this $cordovaCalendar plugin successfully to add events to the native calendar of my smartphone, and it works for me, yes! The problem is ...
0
votes
0answers
9 views

how to close info bubble specifically using angularJS?

i am trying to close info bubble specifically using angularJS in hybrid app.but info bubble close button and any other click event is not working on info bubble.
0
votes
2answers
36 views

how to use unique filter in angularjs

how to use unique filter in angularjs $scope.students = [ { name: 'Hai', createdBy:'Thomas', createdOn:'09-09-2016' }, { name: 'Hal', createdBy:'Thomas', createdOn:'08-09-2016' }, { ...
-2
votes
0answers
34 views

Visual Studio Code. Is it possible to trigger events within previewHTML

I am trying to do simple extension that can save to json file some data within form. So i can render this form with previewHTML but i can not figure out is it possible to communicate with it. For ...
0
votes
0answers
27 views

angular2: EventEmitter not working on radio

On my Angular app, i have a parent module populate dinamically with other child modules. My child modules have this template: <input type="radio" class="form-control" [checked] = "message.default =...
1
vote
2answers
38 views

How do I convert &amp; to & in Angular/Typescript/Ionic?

I cloned this repo: https://github.com/smartapant/ionic2-reddit-reader It reads Reddit, but returns & as &amp; This function returns new Reddit posts: load(url?) { this.redditApi....
0
votes
1answer
12 views

ngTable is not working for Data Table plugin

I am trying create a datatable plugin which reflect same as jQuery datatable plugin with single search box. My Data table plugin code using ngTable is not displaying any data and there there is no ...
-4
votes
0answers
24 views

Forloop Angular JS and HTML

How do i write a for loop in Angular JS and display data(data or example being a count 1 to 10) in a table in html using an ng-repeat and ng-controller a long with an if statement if i were to filter ...
7
votes
2answers
13k views

Angular ui router - Redirection doesn't work at all

I'm using ui.router for routing in my Angular app. There is a typical login scenario, where I'm redirecting a user to the login url if he's not logged in. Without the ui.router library, this worked ...
0
votes
1answer
9 views

asp.net mvc and angularjs open source application

I'm learning angularJs and want to use in ASP.Net MVC applications. But I would like to see first how its used in the projects, so I tried to search open source projects but didn't find any with this ...
0
votes
2answers
17 views

Prevent Googlebot from indexing a page while still allowing access

In a angularjs app, I'm using some fragment like /fragments/welcome-1.html which get displayed as a part of /welcome. I thought, I could exclude it from Google search via Disallow: /fragments in ...
0
votes
0answers
28 views

Angular2 TypeError: e(…).daterangepicker is not a function

I have an issue with this daterangepicker: http://www.daterangepicker.com/ I also use this wrapper for Angular2: https://www.npmjs.com/package/angular2-daterangepicker I included required scripts ...
20
votes
5answers
41k views

Create a simple Bootstrap Yes/No confirmation or just notification alert in Angular

It's so simple in a non-Angular environment. Just html and a two line of js code to show a modal confirmation dialog on the screen. Now I am developting an AngularJS project in which I am using ui-...
0
votes
0answers
9 views

Combining Marker Clusterer and google maps API within Angularjs framework

I'm replacing the angular-google-maps package as it is no longer maintained. The recommended alternative is the angularjs-google-maps which is what I used in the following code: HTML: <ng-map>...
0
votes
2answers
14 views

Changing Element Attributes Based on a Condition

Is there a way to determine which attribute to render on an element? For example, say I wanted to style a div to have a green background if my count variable is greater than 5, but give it a ui-view ...
0
votes
0answers
14 views

Ionic ng-change not fired at first time when selecting toggle button to unselect

Iam trying to get value of toggle but its not working when first unchecked toggle button hit after checked it works fine. <ul class="list has-header"> <li class="item item-toggle" ...
0
votes
1answer
23 views

Angularjs filtering values on two dropdowns

I've a quick issue that I can't handle. I've a data for a dropdown, and depending on the value that's being picked for that dropdown, I want the data to change on the second dropdown, also preferably ...
0
votes
0answers
12 views

MVC default routing not working with Angular2

MVC default Home page routing is not working in sync with Angular2. My application's default URL:http://localhost:60612/ , which internally redirects to Home/Index (like as default page of MVC). ...
6
votes
2answers
137 views
+50

UTF-8 string not decoded correctly in AngularJS

I have a text input box, within a SPA built on AngularJS, for users to add a title to a printout. The input box is declared like this: <input class="chart-title" type="text" ng-model="chartTitle" ...
0
votes
0answers
15 views

Angular 1.5 $http send full array as empty

I have a small problem that two of my Arrays get sent with the $http like they are empty even thou they have values inside them. To test it I logged the data that gets used in the http: console.log(...
0
votes
2answers
18 views

$rootScope in callback is not working correctly

I have a simple app with firebase. To firebase database I save some data, and after saving I want to show alert window to user with response that "everythig is great" or "bad". For alert window I ...
0
votes
1answer
7 views

Implementing 'Caps Lock On' and 'Show Password' functionality in Auth 0

I am building an application using AngularJs. I am using Auth0 for login purpose. I wish to let user know when 'Caps Lock' remains on. Same as when we log into windows; the yellow string that says ...
0
votes
2answers
32 views

Cross- origin request

I want to Upload Image in backened from frontend....I'll use ngFileUploader bower Component. My frontend code is: function SampleController(SampleData,Upload,$http) { var vm = this; vm....
1
vote
1answer
314 views

Authintication Error in Ionic WooCommerce using Angular

I am implementing Woo Commerce Rest API in my Angular/Ionic project on Cordova Platform. While I am making $http request to get product list or any other data, I am getting error Message. Here is my ...
6
votes
4answers
4k views

Binding between input[date] and Moment.js in AngularJS

In order to formulate question I prepared the simplified example: ... <input type="date" ng-model="selectedMoment" /> ... <script> angular.module('dateInputExample', []) .controller(...
0
votes
0answers
7 views

Using element.bind in validation directive

I trying to validate input with custom directive: .directive('customValidation', function () { return { require: 'ngModel', link: function (scope, element, attr, ...
-2
votes
1answer
22 views

How to trigger the function after DOM markup is loaded in angular style application except onload

I need to show a Simple current time with an angular based-application.So have tried a demo. In the body onload function execute the piece of function. <body onload="startTime()"> function ...
0
votes
2answers
29 views

AngularJs directive function doesn't work when declaring scope

I have a directive in which I'm passing an array of data via scope. However, when I click on a button with ng-click, the function doesn't work. This is my directive: angular.module('appModule')....
0
votes
0answers
23 views

ui.router state not working as expected

I am using ui.router to detect state change in Angular App. But the controller is not being called on load. Below is my app.js code. var admin = angular.module('admin',['admin.core']); angular....
0
votes
2answers
23 views

Share data from parent to child state with Angular UI-router

Based on this tutorial, I have as my parent state a list of people. When I click on one of them, a new view is created in order to show the details for that person. In my URL I use the ID for that ...
0
votes
0answers
22 views

Form validation with Tooltip suggestion in AngularJS

I have a small form written using AngularJS , Bootstrap and this plugin for Angular called XTForm <html> <head> <title>Sample Form</title> <script src="http://cdnjs....
2
votes
0answers
22 views

How to reuse existing component in angularJS 1.6 from another controller?

We have a application built with Ag-1.6 in typescript with component structure. Now I have to re-use already created component in task which is a diffent component. For eg: I have TaskAddEditComponent ...
0
votes
1answer
12 views

Angular material - To load date in 3 diferents input elements

I have a basic example with angular material datapicker: <md-datepicker ng-model="myDate" md-placeholder="Enter date"></md-datepicker> I would like to know, if is posible to use this ...
0
votes
0answers
8 views

how to scroll up with ngInfiniteScroll for chat pagination

I use ngInfiniteScroll directive for scroll pagination but doesn't find any options for scroll top and just work with scroll bottom. It's like my code. What should I do? <div class="row chat-...
0
votes
1answer
26 views

How to access a object value of another angular component

Unfortunately I can't pass data between components. I took the bcqr-reader demo at https://embed.plnkr.co/m9dtF9llcAw7eYE94b5k/preview and pass the scanned information to my second component. First ...
0
votes
0answers
22 views

Restrict time based on date in AngularJs

I have a datetime picker control (Datetimepicker for Bootstrap 3 * version : 4.15.35) . If the start date is today, and if the user selects start time as expired time, i would like to restrict it. ...
2
votes
2answers
298 views

Angular material autocomplete search anywhere in string?

https://material.angularjs.org/latest/#/demo/material.components.autocomplete Please can someone tell me how to make autocomplete (Angular material) to search string not only at the beginning of ...