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

How to set watcher for input.$error object with directive in AngularJS

I have a form that contain date inputs and select elements, I tried to use ngChange but I found it not very useful when handling dates errors. So I'm trying to set a watcher in a directive for every ...
0
votes
0answers
18 views

How to show capital letters when shift key is pressed using javascript?

I am working on a project which needs to show keyboard on a popup with small letters and capital letters. I'm done with small letters but when I press shift key all the letters should turn into ...
2
votes
0answers
19 views

Angular: how to update non-angular javascript variable in response to a change of scope model?

I've a huge jQuery plugin with domain logic from a third-party team and I really don't want to mess with its guts. This plugin exposes an object called browser to the global namespace. I have a ...
0
votes
1answer
10 views

Placeholder issue with div tag(when i use text-angular)

placeholder is not getting when i use text-angular.once clicked in the div area at that time place holder is showing. <div class="post-editor" name="Description" placeholder="{{ '...
0
votes
0answers
7 views

Karma + jasmine + moment

Have a question: moved karma tests to linux server with another timezone and some tests failing where moment is used. Has anyone ideas how to solve this? Because changed timezone on my local machine ...
0
votes
2answers
22 views

Clear input field using angularjs

I have setup a standard input filed so you can upload something, now this is my first time with angularjs and I'm trying to bind a delete button which will clear the uploaded element for me, so can ...
0
votes
0answers
5 views

How do I change the default background (grey) and foreground (white) colors in angular material without writing any CSS

I want to change the default background (grey) and foreground (white) colors in angular material without using the CSS here is an example image here, I have pointed the colors I want to change ...
0
votes
0answers
16 views

Allow only english language and numbers in textbox in angularjs

hi i am using a directive to restrict the special chars except alphabet and numbers but it is failing with japanese language. plz help me how can i achive this .directive('noSpecialChars', function ()...
0
votes
4answers
11 views

converting date format in angularjs controller

i write the following coding to print the current date time $scope.date = new Date(); and then i print the same using consol.log console.log($scope.date); and it is working fine Tue Jan 24 2017 ...
0
votes
0answers
8 views

How to add md-Tooltip within md-fab Toolbar buttons in angular material design :

http://codepen.io/anon/pen/ggRQqR I am trying to add tooltips to my buttons which are inside a fab toolbar. However, the tooltips are overlapping each other & i am not getting the functionality ...
0
votes
2answers
25 views

Unable to get JSON data in plain text using angular js

I am using api to get data into plain text from json data. I am not able to display the data in to the table using angularjs. here is the sample json {"success":true,"sensorsdata":{"id":1,"devid":"...
-2
votes
1answer
10 views

Angular fillter not working when using date

My angular script does not seem to work <td title="'Date'" filter="{ dateAdded: 'text'}" sortable="'dateAdded'"headerclass="'bg-table-header-primary'" style="text-align:center;">{{ item....
0
votes
0answers
8 views

How to make Angular Js Dropdown Text into comma separated next line

I have a requirement like Angular JS drop down field which will be generated dynamically based on some conditions which is coming from C# list and we are converting into Model element as ToJson() in ...
0
votes
0answers
6 views

socialsharing.shareViaFacebook post get saved in facebook Ionic

$scope.facebookShareAds = function (product) { var random = generateRandom(111111, 999999); var gen_pro_id = random+product+random; var url = 'http://mob.thebusinessclub.com/order/'+...
1
vote
2answers
15 views

Numbers which was given in textarea should be greater than 0 and less than 5

I have tried using below code for which the textarea accepts numbers greater than 0 and less than 5, everything is working fine but when comes to decimal it unable to validate. below is my code <...
0
votes
0answers
14 views

How to save my webpage as pdf using nodejs

When I click on download I want to download the page as pdf the page is angular js UI router based and dynamically data is attaching using controller
-3
votes
1answer
32 views

How to get the value of a key in object inside an array [on hold]

I have an array of objects. With some logic I am returning the id of some selected objects. What I need is to get the value of name property of that selected objects. I have only one thing to process ...
0
votes
0answers
12 views

Pinterest Bot different for Android and iOS

I'm trying to create Pin from my website (AngularJS) to Pinterest. Because Pinterest can't render AngularJS, I serve static page just for Pinterest to be able to get content for Rich pin. Pinterest ...
0
votes
0answers
10 views

How to apply event when a specific ng-model gets created

I built a directive which takes ng-model and I wanna make sure that this ng-model got created before I create a specific http request so how can I make sure that this ng-model got created before I do ...
0
votes
0answers
7 views

manipulating control labels whilst using angular formly-field

Im currently using the angular-formly directive to create a form. My code is below. I would like to manipulate the control labels when the form is rendered as i need to remove a suffix. Basically ...
0
votes
1answer
16 views

Unable to receive object in web api when making ajax calls via AngularJS

Hi I am developing one small web api application. Since 2 days I am struggling with small problem. I am not able t receive object in web api methods. For example, below is my web api method, public ...
0
votes
3answers
20 views

sending data in angular http post by collecting data value from html form input type text

I am trying to post data by using angular HTTP post method. My requirement is once the form is field than on clicking the Submit button the HTTP post method is called by collecting all the field input ...
0
votes
0answers
5 views

Testing angular 1 component controller with QUnit

I'm trying to test a component controller in angular 1 using angular-mocks and QUnit. Am trying to access the component controller in the same way as a regular controller but using $...
0
votes
0answers
16 views

How to design an angular application where HTML is the the model

I have a special use case for my AngularJS application and I am struggling with how to do it with Angular. (I'm using Angular 1.5.9. (I also use Typescript but that should not really be relevant to ...
1
vote
1answer
30 views

input type=“date” HTML5 for firefox with angular

I have HTML5 input fields with type="date": <div> Start Date <input id ="ui-datepicker-start" type="date" ng-model="startDate" ng-change="updateStartDate(startDate)" value=...
0
votes
1answer
24 views

$q all doesn't wait until all promises are resolved

I have an array with objects. I need to upload it all and then return all result together. But my function has 2 delay, 1st - $timeout (it's needed for me couse I $compile content from object first, ...
0
votes
1answer
24 views

getting an element inside json object in angular

I have this json in my server: {"user":"bla","password":"passbla"} and in side my ts file I accessing it like that: this.http.get('http://myserver.com/myjson.json').subscribe(data => { ...
0
votes
1answer
12 views

How to access profile in scope variable from google sign-in api?

I am trying to follow the tutorial on https://developers.google.com/identity/sign-in/web/sign-in <meta name="google-signin-client_id" content="YOUR_CLIENT_ID.apps.googleusercontent.com"> &...
0
votes
2answers
28 views

rootScope variables are null after time

i'm developing an app with ionic that should save some variables like rootScope variables at the login and reuse these variables in http requests during the run of the application. My problem is that ...
0
votes
0answers
11 views

How to put image in tiny mce in angularjs

I used tiny mc in my form but unfortunately it is not showing image and i tried using the following lines of code but still no luck. $scope.tinymceOptions = { plugins: 'advlist autolink lists ...
2
votes
1answer
17 views

How to change fullcalendar cell color?

I'm trying to change Angularjs UI calendar cell color. But always change event color only. How to change day cell color? this is my angular code for set events $scope.events = [ {className: '...
0
votes
1answer
30 views

How to Improve performance of nested ng-repeat in Angulajs

I am trying to implement infinite scrolling in my AngularJs project and I am using nested ng-repeat and binding the data by JAVA API, the data return by service is huge so the performance is getting ...
0
votes
0answers
8 views

Angular-Elements are not refreshing after aborted drag&drop

I have the following angular-List (reduced the content to make it better readable): <div ng-repeat="element in bigBlock.Elements track by $index" class="...
0
votes
0answers
12 views

Showing summary message for datetimepicker controls in AngularJS

Is it possible to show a summary validation message for date time control? I am using eonasdan-bootstrap-datetimepicker in Angular Js. I have a current code, in which validation error message is ...
1
vote
2answers
11 views

Highchart series is choping

I want to create chart for 24 hrs data using highcharts , but Its seems first two data is not rendering properly, its rendering 11 column in place of 12, Can someone help me.. I have create example ...
0
votes
0answers
8 views

HighCharts: Adding onClick callback on stackLables for a stacked bar chart

Goal is to add a button in front of each stacked bar and click on the button for drilldown charts. I have added button as stackLabel and stuck while adding onClick callback to it. yAxis:{ ...
0
votes
1answer
8 views

Format to pass to mdp time picker

time-picker i have to pass the time to picker but it is not displaying in picker i am not getting to bind the time what i extracted from date $scope.eventStartTime = new moment($scope.editEvent....
0
votes
1answer
13 views

How to efficiently store data in Ionic local storage without converting object each time?

Every time we need to store an object we need to do a JSON.stringify. Is there a efficient way to do this in Ionic and AngularJS? The code that I am using is: $window.localStorage[key] = value;
0
votes
1answer
13 views

angular application is cached when using auto suggest url in Firefox

When the application is accessed through auto suggest url of firefox, it loads the cached version of index html. But as soon as the user re-loads the page, it loads the latest version of index html ...
0
votes
2answers
25 views

Disable selection in text input

Basic problem is, when user tabs in a specific text input on a form, prefilled "+36" gets selected. I'd like to somehow put the cursor right after it (after the +36), instead of selecting the whole ...
0
votes
1answer
20 views

removing angular hash and prefix from #anchor

iam strugling to make a direct anchor link to a site. when ever i try to link to the id via: https://www.somesite.com/cl/details/agents#20841 where #20841 is my anchor tag. Angular breaks the url and ...
0
votes
2answers
23 views

what is the difference between controller and controllerAs in agularjs?

I am new in angularjs, i am confused in term 'controller' and 'controller As'. why we use both at a time? i want brief description about this both directives?
1
vote
0answers
20 views

AngularJS: is $location.path('/newLocation') synchronous or asynchronous?

I'm trying to extend an existing AngularJS application. In the old version, the developer upon pressing a form button Generate report would display a hidden div. Now due to changes in the use-cases it ...
1
vote
1answer
28 views

Advance search in angular js

Advance search in angular js for more than one filed dependent on click event not working ..I want to perform search on multiple column and send only one request to search by clicking search buttton ,...
0
votes
0answers
8 views

best practice to deploy angular 2 project production, would like to use maven and tomcat war for production

best practice to deploy angular 2 project production, would like to use maven and tomcat war for production deploy minified, angular2 cli project ng build --prod ( will generate dist,probably war ...
0
votes
2answers
21 views

How to clear localstorage when moving from angular page to non angular page?

We are working on a JSP/Servlets application , recently we are moving one of module to angular 1.5 with REST api. Now facing challenge when moving from angular state to one of existing JSP page, we ...
0
votes
0answers
23 views

How to display value in label when button click using angularjs

I have an aspx page with button group and label. I want to display selected button value in the paragraph tag. Here is my controller code $scope.GetID = function (uGuid) { $scope.uid=uGuid; ...
-1
votes
1answer
12 views

enable/disable multiple text boxes on dropdown selection values in angularjs

I have 1 dropdown which contains values("Due Date","Tenure","NA". these values come from database) respectively.I have 2 text boxes textbox1 and textbox 2. I want textbox1(i.e DueDate) enabled if ...
0
votes
0answers
13 views

Error: [ng:areq] Argument 'scope' is required datatable angular

I have used datatable in angular. I am trying to delete item. First time it works completely fine but second time it shows an error. Error: [ng:areq] Argument 'scope' is required Below is my code. ...
0
votes
0answers
21 views

sending multiparts files from angular js to java jersey

I have this client side (angular js): self.onSubmit = function(){ var formData = new FormData(); angular.forEach($scope.files,function(obj){ if(!...