返回首页
We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [angularjs]

Use for questions about AngularJS (1.x), the open-source JavaScript framework. Do NOT use this tag for Angular 2 or later versions; instead, use the [angular] tag.

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

Populate google line chart by calling angularjs controller function from javascript code

I have created a static google line chart: <script type="text/javascript" src="http://www.gstatic.com/charts/loader.js"></script> <script type="text/javascript"> google....
2
votes
1answer
14 views

Expect on value assigned from promise (Jest unittest)

I'm unittesting a es6 class and want my test to verify the values written to the class variables. My class has the folowing method: export default class ctrl{ constructor(){} ...
0
votes
0answers
14 views

How to add additional parameter in file upload method and get on controller side?

File add some parameter : angular.forEach(files, function (file) { **file.DocumentType = xxxxxx; file.userDetails = xxxxxxxxxxxxx;** this.uploadedIdFiles.push(file); }.bind(this)); ...
0
votes
1answer
14 views

Use .resx with AngularJs translation

What's the best approach to transforming .resx files into the necessary JS format for angular-translate (AngularJS)? We use grunt as a build tool, but couldn't find any taks that would do this out of ...
0
votes
0answers
16 views

Leaflet map not loading fully. At begining it load properly,but when I want open with large height and width it wont working only half of tiles loaded

this is the result that I got partially loaded map remaining part id gray color pary: enter image description here="http://i.stack.imgur.com/QGt3o.png" />
0
votes
1answer
21 views

AngularJS Directive two way binding in isolated scope not reflecting in parent scope

I am trying to pass a scope array element to a directive and changing the value of that element inside the directive but when I print the values of the scope element the changes that made inside the ...
0
votes
0answers
13 views

ng file upload with ng-repeat

I am using angularJS and I have a list of upload file. <div ng-repeat="x in arr"> <button ngf-select="uploadFiles($files, $invalidFiles)" multiple accept="image/*" ngf-max-height=...
0
votes
1answer
22 views

Adding an additional criteria to filtering function in AngularJS

In following codepen I have two tables simulating a IT trouble ticketing data. Everything works good for filtering based on either spans (All, Open, Closed) elements and text search. But, one of the ...
0
votes
0answers
20 views

Update $state.params without reloading a controller [duplicate]

Is there a way of updating the $state.params in AngularJS without reloading a controller? I am trying to switch views from kanban to list view based on $state.params so that whenever user goes back ...
0
votes
0answers
23 views

Displaying a list inside list by AngularJS inside html table

I need to display months just beside each Quarter (Q1(1st td) Jan(2nd td) Feb(3rd td) Mar(4th td) Q2(5th td) Apr(6th td).....till Dec where all the data is available in CodPeriodDetails(which will ...
0
votes
1answer
14 views

Use UI-router to navigate to fromState

AngularJS UI-router has a useful parameter "fromState" which allows me to store where the user came from when they change state. I am trying to implement a system which takes the user back where they ...
0
votes
1answer
28 views

Changing text of initial blank option in select menu in Angular

I have a select menu with using ng-model and a list of values like so: <select ng-model="$ctrl.ngModel" id = "{{$ctrl.idPrefix}}-select" ng-change="$ctrl.change()"> <option ng-...
0
votes
0answers
15 views

Cannot read property 'apply' of undefined in pubsub

I am trying to mock pubsub library in angular js unit test case like below : in spec file : beforeEach(function () { module('edit'); inject(function (_$genPubsub_, _$q_) { $genPubsub =...
0
votes
0answers
38 views

CSRF Prevention with Spring Security and AngularJS

I'm using Spring 4.3.12.RELEASE Version, AngularJS 1.4.8. I'm trying to prevent the CSRF Attack on the application. @Configuration @Order(2) public static class SecurityConfig extends ...
0
votes
0answers
19 views

In edge browser, placeholder font-size is not same

In first line, one search field is there. In second line, four dropdown is there i.e. "Shop", "Gift", "Collect" and "At Work" In microsoft edge browser, If i select "Shop" dropdown, font size of ...
0
votes
0answers
12 views

Why the OGP not running in whatsapp?

anyone, I'm trying to use OGP on my app so it can show the preview on whatsapp. But it doesn't work at all. I have tried all tutorials about OGP implementation like in the documentation. My app is ...
-1
votes
0answers
14 views

How to protect or hide code using Angular js [duplicate]

I want to protect my business logic. Is there is any way to protect it or hide. We can view our source code from browser i want to protect it without disabling right click.
0
votes
0answers
42 views

How to find a specific text in a textarea, move to it and mark it

I have some json arrays filling them in a several drop-down lists.And I have loaded SQL stored procedure text body in a textarea as image. to able the user to edit the stored procedure without ...
0
votes
1answer
44 views

How can I add an class to a container when a component get focus or is clicked in angularjs?

I want to add a class to the container when the input field has a focus or when the dropdown component gets focus or is clicked. On unfocus the class must be removed. The input container must get the ...
0
votes
0answers
36 views

Excluding multiple rows in MySQL using Angular.js and PHP

Is it possible to exclude multiple rows in selecting data from mysql? Table is like this (for Adding ITEM to Order List from MySQL) Select an Item +=============+==============+=========+ | ...
0
votes
0answers
25 views

BackTick in JavaScript Throws 500 On Some Environments (Angularjs page)

Have a really odd issue. Have an old AngularJs page where some JavaScript will work on all of my development servers, but not in Production. I use the same browser so I know that isn't the issue. ...
0
votes
0answers
29 views

Get Vue component by html element

I'm trying to migrate an angularjs app to vue.js I have a vue component rendered inside angularjs element: <angular-controlled-div> <root-vue-element> <vue-child-component ...
-1
votes
2answers
38 views

jquery.marquee.js can not run with angularjs

i'm a newbie of AngularJS (using v1.5) anh now I have a problem: I use javascript jquery.marquee (http://aamirafridi.com/jquery/jquery-marquee-plugin) in html same that: <script type="text/...
0
votes
0answers
9 views

Angular.js - $mdThemingProvider don't change color

I am new to angular.js . I am not able to change the colour of the padding in my page. Here is my initial code angular.module('App').config(function ($mdThemingProvider) { // Use as Primary ...
0
votes
0answers
18 views

Unable to send dynamic invoice value to server

I am working on angularjs 1.6.5 I am using following code to send data of invoice page. $scope.products = [{qty: 0, description: ' ', sellingPrice: 0.0, unitPrice: 0.0, total: 0.0}]; $scope....
1
vote
0answers
35 views

I'm getting two different error messages when i'm using page objects with different browser instances in a single test in Protractor

when i tried to use the page objects created with two browser instances, i'm getting two different errors for two different syntaxes. 1. With adding browser instance to the page object PageObject ...
-1
votes
0answers
20 views

Add/Remove item in list on click of check box angular.js [on hold]

web application developed in angular.js based on MVC. I am not much very technical in angular js.Please help for the below. The below list (list within another list) is populated from DB on page ...
2
votes
1answer
19 views

do not show 0 value on google line chart

var data = google.visualization.arrayToDataTable([ ['Year', 'Massachusetts', 'National'], ['2010', 88, 76], ['2011', 0, 82], ['2012', 96, 86], ['...
0
votes
1answer
24 views

How to setup the ignoreSynchronization when dealing with multiple browser instances in a signle test

I am trying to dealing with multiple browser instances in a single test.. once the action is done in one browser instance.. my script will open the new browser instance and for ignoresynchronization i ...
0
votes
0answers
18 views

Angular js : How to post data from tinymce with angular js

i want to post data with tinymce textarea with angular js here is my code HTML <textarea ng-model="ticket.description" ui-tinymce id="description" class='editor'> </textarea> ...
0
votes
0answers
14 views

Drag and Drop Jenkins jobs on demand

I have some modular jobs in Jenkins. All of the jobs can run independently of each other. I am looking for a solution which would allow me to drag and drop the jobs as per the sequence I need to ...
-1
votes
0answers
15 views

How to migrate from Angularjs to latest Angular [duplicate]

We have an Enterprise application developed in angularjs v1.4.9 without typescript. Now after 4 years into product, we are thinking of migrating the framework from angularjs v1.4.9 to latest version ...
0
votes
1answer
22 views

angularjs calling select on corresponding HTMLinput doesn't highlight cell contents if value comes from ng-model?

I am trying to select (highlight) the text in an input element whose value comes from a model, but it doesn't seem to work. The element (part of component template) in question is as follows: <...
0
votes
1answer
32 views

Textbox binding not working when page has loaded AngularJS [duplicate]

I'm trying to set textbox value based on the result of promise values when page has loaded. The values on textbox set only if I click on it and then out of it (just like blur event). Controller (...
0
votes
0answers
16 views

I am facing the issue not able to populate drop down list in input filed using AngularJS

// in HTML View // i am not able to understand even console did not get any error..and showing logs correctly whatever i stored the values from system console // i need dropdown list in input ...
0
votes
0answers
24 views

micro frontend angularjs replacement

We have an ancient web app, over the 20+ years, we've added different technologies while slowly replacing the old, the web app now has: classic ASP, asp.net webform & mvc, knockout, and angularjs (...
1
vote
0answers
18 views

Protractor automation test - move element to placeholder

Problem: I'm working on regression tests for dashboard with widgets. One of my test case needs to check if drag and drop of widgets is working correctly. As an assertion, I will count how many ...
0
votes
0answers
8 views

Packing a static AngularJS website with any web server (e.g. nginx) into a single rpm package

And thank you very much to everyone who responded :) I have no experience building rpm packages with such requirements For several days now, I can’t defeat the task of packing a static website (...
0
votes
1answer
24 views

Angularjs Angular-Material Back Button Executes Twice

I just incorporated angular-material v1.1.20 into my angularjs v1.3.13 project and now, only when running on a mobile device and pressing the back button, the back operation is executed twice. When ...
0
votes
2answers
48 views

How to add tooltip for an disabled <li> items in angular JS

I have a li list as follows, <li class="dropdown-item" data-toggle="tooltip" uib-tooltip="tooltip goes here" data-placement="left" data-ng-repeat="result in items.results....
0
votes
0answers
31 views

jquery DateTimePicker maxDate doesn't update

I am writing a simple datepicker and trying to update the maxDate attribute dynamically. To do this, I have setup a watch in my datepicker directive and simply update the maxDate when my watch ...
0
votes
0answers
4 views

How to zoom the aplication content (text and image) in Onsen UI Framework and AngularJS?

I'm trying to make some mobile applications using Cordova. In the application, there is a picture or text as the application content. I need the content can be able to zoom or to enlarge it This is ...
0
votes
1answer
50 views

Result undefined in AnuglarJS even though result is returned

I have a requirement to receive values from an operation above which uses a HTML form to collect data from a user and pass it to an external JavaScript file that returns a string after processing the ...
-1
votes
0answers
19 views

How handle watchers in angular js

I want to off the dob watch when I gave the value dynamically to dob from age watcher in controller.. vice versa patientInstance.scope.$watch('dob', function (value) { console.log('dob',value); ...
0
votes
1answer
23 views

`md-highlight-text` not working together with `ng-bind-html`

ngSanitize dependency is not working with ngMaterial dependancy when declaring the app I have declared the module as: var myApp = angular.module('myApp', ['ngTable', 'ngSanitize', 'ngMaterial', '...
-1
votes
3answers
57 views

How to calculate and display sum of field from javascript object

I have an object, where I need to display name. and the total expense amount of respective person. I am able to display name by using ngfor. But how to display the sum of respective amount. Like ...
0
votes
2answers
38 views

Is there a way i could wrap some get methods for an angular reactive form control into one function

Good day, this is my first time asking a question here and am pretty positive of a solution, In my component, I have an angular reactive form setup below and some getters(what i call lols) but it's a ...
0
votes
0answers
39 views

Changing POST request from jquery to angular method [on hold]

I am humbly asking for your insight regarding this matter, I would like to convert this from jquery into angular, can someone teach me how to do it? Thank you very much. $(function () { var ...
-1
votes
1answer
29 views

Calling Angular 7 Code from AngularJS 1.x code

One of my project requirement, I have to build the UI using Angular 7 on top of legacy codebase is AngularJS 1.x. 1) AngularJS is javascript but here Angular 7 is typescript. How communication will ...
1
vote
2answers
62 views

How to get promise result using AngularJS

The following is the controller used to retrieve information from sharepoint. I can see debugging that the entry data.d.UserProfileProperties.results[115].Value has a property value that I need to ...

返回首页
杏彩计划 杏彩官网 杏彩APP 杏彩走势图 杏彩下载 杏彩官方 杏彩网站 杏彩怎么玩 杏彩官方 杏彩靠谱吗 杏彩代理 杏彩骗局 杏彩投注 杏彩倍率 杏彩开奖 杏彩漏洞