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

0
votes
0answers
2 views

Implement table with both row and column headers in angularjs

I have a table which has both row as well as column headers. Currently the values of row headers are also present in the json which I retrieve to display in the table. So I have mapped the row header ...
0
votes
0answers
5 views

A Free, Rich Text Editor like CKEditor is required but it must be Content Security Policy i.e. CSP complaint

Could you all please help me in looking for a Rich Text Editor a bit like CKEditor. However, it must be CSP complaint unlike CKEditor. I have been using CKEditor for a long time in my application but ...
0
votes
0answers
11 views

Angular UI modal with Bootstrap 4

Bootstrap 3 modal works fine: https://jsfiddle.net/qLy7gk3f/4/ But Bootstrap 4 modal doesn't: https://jsfiddle.net/qLy7gk3f/3/ The code is identical: $scope.click = function() { $uibModal.open({ ...
0
votes
0answers
10 views

Jhipster or Spring Data JPA

I have a question about Specification Builder in Jhipster. I need to retreive between two dates and I don't want to lose pagination. Due to this, I have to use Specification Builder. How to handle it ...
0
votes
0answers
9 views

how to get center_changed latitude and longitude in angular google map

I am using angular google map https://angular-ui.github.io/angular-google-maps/#!/ . When user dragend the map. I need to get his center latitude and longitude like ola or uber app. I got a demo in ...
0
votes
2answers
28 views

AngularJS giving errror as module not defined

In one file i have created module & controller as var module = angular.module('app', []); module.controller('ContactController', function ($scope, ContactService) Then in second file i created ...
0
votes
1answer
31 views

Passing a variable to directive from controller on Button click

TLDR; I don't want to databind two input boxes, but rather pass the variable from the controller to the directive (which has a controller inside). Currently I have the following HTML page HTML ...
-1
votes
1answer
18 views

how to read local text file using angular js1

I have to read local text file which contains some data I need to extract some specific data from it but when I am using it is reading and displaying whole file in HTML. CODE: <div ng-...
2
votes
1answer
16 views

pdf opening unsafe blob in new tab angularjs

I am trying to open a pdf file that i call from the server, i receive the file in the format of an arraybuffer. I tried many ways to open the pdf file in a new tab using $window.open and converting ...
0
votes
1answer
13 views

X editable-checkbox in MEANSTACK angularjs

I am binding the data in a HTML table using ng-repeater now I need to show a checkbox in the table depends upon a db value whether true or false. Values are stored correctly I am not able to display ...
1
vote
1answer
19 views

FileReader readAsDataURL() method not read large pdf file 24 MB in typescript

let fileReader = new FileReader(); fileReader.readAsDataURL(file); readAsDataURL method reading smaller files( below 5mb) file upload working fine.But when I upload larger file( 24MB) not reading ,...
1
vote
1answer
22 views

AngularJs Destroy Broadcast and Emit Listners

I am using $broadcast and $emit in my angularjs application. Here is the code i am registering $emit function : this.scope.$emit('changeTime', { currentTime: this.currentTime }); In another ...
0
votes
0answers
22 views

How to load an action in angular directive as a modal

How can i load ActionResult in directive? i am new in angular and got this bad challenge and i don't know how shuld i do this. is there any simple way for using modal in angular and load an MVC action ...
0
votes
1answer
21 views

Need to convert text box from table when user will click on update button in AngularjS

I have created one table in HTML using AngularJS .Table's data is getting populated from back end service. Please find the below code for table generation: <table border="1"> <tr> <td&...
0
votes
1answer
22 views

Angular.copy changing reference

When i am trying to copy new object to old object via angular.copy, its reference get changed. If i use = or JSON.parse(JSON.stringify(newObj)), view is not updated with new value. Any solution to ...
0
votes
0answers
15 views

Making a iframe editable

I am using angularjs for my application. In that i am loading a text file from url(ng-src) to iframe and displaying the content in iframe. But i want to make some changes in the loaded text file, ...
1
vote
2answers
14 views

Checkbox value to be checked by default in angularJs

<input type="checkbox" name="customPermissions[]" ng-model="form.customPermissions.examsList" value="examsList" ng-init="form.customPermissions.examsList=true"> {{phrase.examsList}} I want to ...
1
vote
0answers
16 views

ERROR in 'Angular2SocialLoginModule', function calls are not supported

I have used angular2-social-login(https://www.npmjs.com/package/angular2-social-login) for social login and also used angular-cli(https://github.com/angular/angular-cli) for compile. While I am ...
0
votes
1answer
17 views

How to access controller value in custom typeahead templates

I have scope values in controller.I need to display scope values in custom type ahead template. But custom template will not access the controller values it always display empty. In my scenario i ...
0
votes
0answers
13 views

ng-file-upload Resumable Upload Example

I can't see any demo of a complete file upload with this plugin: https://github.com/danialfarid/ng-file-upload That has a pause/resume/cancel feature? Also if possible not to trigger the submit ...
0
votes
0answers
15 views

Promise not define while trying to install a project via yomen angularify

I am getting this error /usr/local/lib/node_modules/yo/node_modules/rx/dist/rx.js:77 throw e; ^ ReferenceError: Promise is not defined at /usr/local/lib/node_modules/yo/node_modules/yeoman-...
1
vote
1answer
18 views

How to make use ngModel.NgModelController's properties $touched within the controller?

In fact, I want to ask how to make use ngModel.NgModelController's method and properties within the controller, and it will be perfect if there is more explaination about the usage of ngModel....
0
votes
0answers
14 views

how to deploy Angular 2 App to Github Pages?

I was able to publish an app made with Angular Cli tool to Github Pages a few weeks ago, but now when I try to use the command ng github-pages: deploy I get the error: The specified command github-...
0
votes
1answer
24 views

IONIC Click Event. Not Working

The Code Below Works Perfectly fine when i run it in browser. But when the same code is placed in ionic specific code. it doesn't Can you guys help me through it. Thanks in Advace. <div ng-app="...
0
votes
1answer
19 views

how to send api call controller.js to service.js using angular.js web api?

I want to send api call controller.js to service.js in my demo.i am show user list in demo and i am used for angularjs datatable with web api.and my structure is app.js,controller.js,service.js this 3 ...
2
votes
4answers
45 views

Multiple controller for same view in AngularJS?

Is there any way that I can define two controller for the same templateUrl in angularjs using stateProvider like below? //State Provider for dashBoard Screen .state('dashBoard', { cache : false, ...
1
vote
4answers
41 views

ng-options pass value from dictionary

I have a dictionary, so in json Object {1: "value1", 4: "value2" } And I would like to pass selected value instead of key. Now I code like this: <select ng-model="myModel.myValue" ng-options="...
-2
votes
2answers
41 views

jquery: Uncaught SyntaxError: missing ) and Uncaught Error: [$injector:modulerr]

I am getting error:Uncaught SyntaxError: missing ) after argument list and Uncaught Error: [$injector:modulerr] i don't know where i made a mistake can anyone check my issue <!DOCTYPE html> &...
0
votes
1answer
22 views

Get selected option from backend using Angularjs

How can i init my select with option, that selects on backend (Symfony). Now i init my select (ng-model="myselect" example) like ng-init="myselect='0'" I need to set actual selected option in ng-init, ...
0
votes
1answer
17 views

ui-view is calling multiple times when another template is binding as child view

what iam trying is to get the child views for different states my states code routeConfig.$inject = ['$stateProvider']; function routeConfig($stateProvider) { $stateProvider.state('home', { ...
0
votes
3answers
13 views

How to display recommended items on product details with angularjs?

Iam displaying the product details when we click on product name.The product details iam getting from the json file.i want to show the similar items in my product details page.how can i achieve it?
0
votes
1answer
14 views

angular UI route not work on page reload or direct URL hit

when i click on ui-sref="state1" or ui-sref="state" it's working fine, change the url like as http://demo/state1 or http://demo/state2 but on direct hit the url it's not working HTML CODE <html&...
0
votes
0answers
25 views

Javascript: Upload image on bigger background, then crop it

In my application, I need my images to be 500x360. I wanna provide an upload form to allow the user to pick a picture, resize it to the desired format, then send it to the server. Very simple for ...
0
votes
0answers
15 views

Angular formly onblur calculation and hide/show fields error

I am trying to perform some calculation on formly onBlur event and after that would like to hide and show the next radio button field. when I debug everything looks good but on UI I am not able to ...
0
votes
0answers
10 views

How to get the multiple selected data on isteven multi select angular js?

[HTML for isteven multi select (Selecting Social media and job boards)][1] [1]: https://i.stack.imgur.com/7kQJB.png As you can see i'm using isteven multi select for my view in my website. [These ...
1
vote
0answers
12 views

I am getting Error: [$controller:ctrlreg] The controller with the name 'classifiedsCtrl' is not registered

New to angular. Had it running fine with no controller then added a ng-controller directive to HTML markup and broke interpolation. Using Angular 1.6. What am I missing? <head> <script ...
-2
votes
4answers
34 views

How to loop through an array in Angular js

HTML View <div ng-app="myApp" ng-controller="myCtrl"> Hi <span ng-click="changeName()" style="cursor: pointer;">{{firstname}}</span> </div> Model and Controller ...
0
votes
0answers
12 views

JSON based models - Rails 4.x

I'm starting with JWT and JSON Token authentication on Rails and AngularJS I've noted that most of the tutorials outthere are about authentication. But what about adding for example, blog posts from ...
0
votes
1answer
25 views

Drag and drop in between two angular material tab

I've two separate div's with angular-material tabs (md-tabs). Using angular drag and drop library, I'm trying to drag the content (button) from one Tabs to another. But while dragging, the button is ...
0
votes
1answer
15 views

Angular2 changing date format in the ng-grid

columnDefs:any[] = [ {headerName: 'Incident Id', field: 'incidentId'}, {headerName: 'Time', field: '{{incidentTime | date: \'dd/MM/yyyy\'}}'} ]; where incidentTime is in timestamp ...
0
votes
2answers
36 views

passing function as two way binding re-triggers $digest - infinite loop

I need to pass in a value from a parent directive (bound to controller X) to a child directive, update it, then pass it back all the way to the controller X updateItem function. This causes the ...
0
votes
1answer
32 views

if i click on label in a table row, That progress bar should highlight and remaining will blur as you can see in below image

If I click on a label in a table row, that progress bar should highlight and remaining will blur. The following figure shows how to display it. <div id="test" class="description" ng-show="show" ...
0
votes
0answers
37 views

Javascript input type file issue with windows

I am working with angularjs/javascript and trying to upload .vtt file using html <input type="file"> tag. After selecting file i am firing a onchange event of javascript and getting file object ...
0
votes
0answers
29 views

When open a modal on page load but modal open two times

I want to develop a angularjs web application where I need when url has a query string id then open a modal against the id. The modal open successfully but problem is the modal open twitch time. So ...
0
votes
0answers
7 views

ngredux state with big data collection, memory concerns

We are implementing ngRedux for our Angular app. It all works nicely however I have on concern: memory usage, especially for mobile. Our stores state object looks like this: { leads : [], ...
0
votes
2answers
29 views

Difference in between ! and !! in angular

What is difference in between !!user.rank and !user.rank <div ng-show="!!user.rank"> Rank: {{user.rank}} </div> <div ng-show="!user.rank"> <button class="btn btn-success"...
0
votes
2answers
26 views

tsc compile error in angular when dependencies are out of node_modules folder

I'm trying to migrate my angular 1 code to angular 2. and now I bootstrap my app in hybrid way.I have my angular 2 config files inside node_modules folder. I want to move those file inside public/...
0
votes
2answers
32 views

Call parent directive function from child directive

I need to pass in a value from the parent directive to the child directive, update it, then pass it back. When I pass in the parent function, and create a two-way binding, I get error: scope....
1
vote
1answer
10 views

Cyclomatic Complexity in AngularJs for simple if else if loop

I am refactoring my code, I am using SonarQube, SonarRunner, JSHint to follow the best practices to check code complexity,quality and duplicate. For normal if else if loop the complexity is high ...
0
votes
0answers
10 views

using swiper with ionic

i used ion-slides to scroll between 3 different images on the upper half of the screen, and now i'm using swiper (http://idangero.us/swiper/get-started/#.WMCuvjt942w) to implement a vertical scrolling ...