Tagged Questions
AngularJS 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 single-page ...
0
votes
0answers
9 views
passing scope to function is not working
I'm new to angular.js, and the $scope is not working in the function, which is inside the controller....
<div>{{logMsg}}</div>
<script type="text/javascript">
angular....
0
votes
1answer
5 views
Form validation not working in mdDialog
I have this simple working form, but when I put this in a $mdDialog it doesn't disable the submit button anymore... it basically ignores the networktypeForm.$invalid Is this common or is there a fix ...
0
votes
0answers
4 views
How to highlight the current row when cell template button is clicked in angualar UI Grid
I have enabled ui-grid-selection on grid.As a result that when row is selected it will be get highlighted but my requirement is that i want to highlight the row only when the cell template button is ...
0
votes
0answers
3 views
Angular2 Typescript night performance for npm start
I created simple Angular 2 project and when I click npm start I need waiting very long time for build my app.
package.json
{
"name": "testAngular2",
"version": "0.0.0",
"license": "MIT",
"...
0
votes
1answer
8 views
How to control when the child elements executes the same ngClick event as the parent?
I have a user avatar that accepts an ngClick event to show a menu with user options. Over the avatar, in the corner of it, is an online/offline icon for the user; just a circle that can be either red ...
0
votes
0answers
12 views
Displaying the values from json response to dropdown list
I have a JSON respone from REST API . I need to move the values of country , state , city into my dropdown. MY default value will be ALL , I need to push this country , state , city in there ...
0
votes
1answer
2 views
Xeditable checklist not store data
i use xeditable for angular. I make form-list for edit user, everything works fine, only check list make me problems :)
I use xeditable check list, like this one https://vitalets.github.io/angular-...
0
votes
0answers
4 views
Adding Aria-labels to Angular pagination grid to make it more accessible
In this plunker example I borrowd from this thread, there is an awesome example of how to create a pagination grid using AngularJs.
(My question differs a bit from this similar question.)
In one of ...
0
votes
2answers
13 views
How to order checked checkbox at the top of the list in AngularJS
I am consuming data from api and display it in the normal list view along with checkbox.There are two api where I have full list of resource in one and selected resource in another.
Currently like ...
-2
votes
0answers
6 views
mwl calendar mark hour in different color
I use the mwl calendar and I will mark the hour from 12 - 13 in another color inday view.
Is there a simple possibility to do this?
0
votes
0answers
5 views
md-input-container of md-autocomplete doesn't get expected classes
I use angular 1.5.7 and angular material 1.1 and have the following problem.
At first I dynamically added a directive to the input of an autocomplete.
$timeout(function () {
var myAutoCompleteInput ...
0
votes
0answers
14 views
Angularjs: How to make service/factory get data from provider
I am really trying to understand how provider configuration works.. i have a service which only makes http calls. let's say it goes like this:
module.service("$myService", ["$http", function($http){
...
0
votes
0answers
30 views
angularjs sort orderby on array
I have data like
{ column : [a,b,c], data : [["a",1,2],["b",4,5],["c",3,2]]}
table structure
<thead>
<tr>
<th ng-repeat="n in column" ng-click="click($index)">n</th>
&...
0
votes
0answers
24 views
update the scope value in angular
I am new in angular js. I am creating a small app using angular. This is my code:
<input type="text" ng-model="one" ng-change="sum()">
<input type="text" ng-model="two"ng-change="sum()"&...
0
votes
1answer
11 views
Syntax Error when $eval a string inside a directive under ng-repeat
My directive:
app.directive('showTitle', () => ({
restrict: 'A',
link (scope, ele, attrs){
console.log(ele.text());
if (/\{\{.*\}\}/.test(ele.text())) {
ele....
0
votes
2answers
19 views
Show html when called from angularjs controller
I know that similar questions can be found, but no answer worked for me. I want to show a html, for example <h5>Your password is incorrect</h5> when i encounter bad credentials at login. ...
0
votes
0answers
7 views
Angular UI grid align multiselect with row
I have an angular UI grid. I have multi-selection enabled for the rows. I have also changed the css of the cells such that word wrapping is enabled within each cell. But when I do this my selection ...
0
votes
0answers
11 views
Where to use “Browserify.js” in this gulp scripts.js file?
Pretty unfamiliar with Node packages and using them in the browser and really want to use a package in my project so i have came across Browserify to do this.
But im really confused on where & ...
0
votes
0answers
12 views
AngularJS authentication happens only on multiple fast clicks
I have an angular app based on the angularjs/php authentication sample. Due to some reason, login only occurs if I click the login button in rapid succession for about four times. But if we use the ...
-1
votes
2answers
15 views
can we create custom directives with in the angular controller?
I am getting data using $http service in the angular controller so based on data i need to develop one custom angular directive(i.e custom HTML tag) with in the same controller, Can any one tell me ...
0
votes
2answers
10 views
pass value from one different app module controller to another app module service using $rootScope in angularjs
I am doing project in angularjs,my requirement is need to pass value from one different app module controller to another app module service using $rootScope
Here my part of code
Login module and ...
0
votes
0answers
10 views
Mongoose Store like and dislike
I am developing a review system in which user can like and dislike the review as shown below.Like and dislike button is working fine but the problem is that user are able to click same button multiple ...
0
votes
1answer
7 views
How to use turf.js with ionic?
I am new to ionic and trying to use turf in ionic app.
First i installed it via npm using
npm install turf
This added turf folder in node modules. I copied this in lib folder.
Then i added link to ...
0
votes
1answer
29 views
Get object data with 2 dropdown menus + update Issues
In addition to this question I need to get the selected values to my AngularJS controller.
To use the same example like in the previous question let´s say you can select your destination with two drop-...
0
votes
1answer
26 views
Angular filtering data in javascript is not displaying results and push of data causes error plunker provided
Ok, seems that I was having too many issues with the way in which my Angular site is setup, so I put it in a plunker as then anyone can see it.
Original question: Angular retrieve specific data ...
1
vote
0answers
2 views
How to assign the time for $cordovaLocaNotification using ion-datetime-picker
I am trying to develop my first app in which i want to assign the user assigned time as 7:10 pm, which is used to repeat daily but not able to assign its value to attribute date in $...
0
votes
2answers
35 views
How to get a chekboxlist without using ng-repeat in html
That I have some group of checkbox I have used , through that when I used to get a value it's getting an "undefined", plz suggest me - am I using a correct format or not. I am new in angularjs, thank ...
0
votes
1answer
37 views
How to generate a Facebook like Website preview for sharing?
I am developing a mobile application in Ionic. I have a share button where the user can share a website link. I want to have a feature where the user can preview the website as we can see in Facebook.
...
0
votes
0answers
17 views
How to write karma test case for modal dialog?
I have the modal like this
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
...
3
votes
4answers
37 views
How to bind a directive from the Controller into the HTML?
Suppose i have a directive CARD
.directive('card', [function() {
return {
restrict: 'E', // Element directive,
templateUrl: 'scripts/directives/card.html'
};
and a controller say ...
1
vote
1answer
17 views
Filter object array with pipe Angular 2
I have a class:
export class Todo {
public id: number;
public name: string;
public isCompleted: boolean;
public dateCreated: Date;
public userName: string;
}
A service:
getTodos (): ...
0
votes
0answers
12 views
get all filtered - not just visible - rows from angular ui-grid
In my app I display data in ui-grid with client-side filtering, sorting and pagination. I also want to display totals for some grid columns, but I cannot use built-in aggregation features because they ...
0
votes
1answer
11 views
Unsupported Media Type when uploading file
this is my code :
web api :
public IHttpActionResult UploadUserInfo(UserInfo userInfo)
{
//....
return Ok();
}
angular :
var vm = this;
function uploadFiles(file) {
Upload....
0
votes
0answers
14 views
Passing AngularJS scope to a JS Chart
I am trying to use an Array from a controller which is within a $scope globally declared in that controller within some Javascript in my html file. Is this possible to do? I have tried to implement $...
0
votes
1answer
15 views
Define custom url's with angularjs
I want to set a custom url for my pages I am using angularJs. Like I have a page compare.html and one controller for it. My current url's are like "www.mywebsite.com/view/category/compare.html" I want ...
0
votes
0answers
21 views
After changes applied callback in Angular
Where is way to do some stuff after changes applied in angular 1.5x and 2?
(please give me answer for both versions)
For example:
<div ng-show="$ctrl.mode === 1">content 1</div>
<div ...
0
votes
1answer
9 views
how to hide selected items in suggestion list in ui.bootstrap.typeahead angularjs
I add each selected items in suggestion list in ui.bootstrap.typeahead in ng-click angularjs event to another list to show to users(these users are selected), now i want don't suggest these selected ...
1
vote
1answer
21 views
AngularJS - ReferenceError: “someScopeVar” is not defined
I am building a feedback-form with AngularJS, where the user data is stored in $scope.feedback. Now I want to include a progress bar and need to determine the percentage.
// $scope-variable to ...
0
votes
0answers
22 views
$.ajax post vs. $http.post
Would appreciate some light shed on the following issue. I need to do an HTTP Post with XML data in my AngularJS client. I was able to achieve that using $.ajax POST:
$.ajax({
url: url,
type: '...
1
vote
1answer
13 views
Row added by directive via 'template' is being added to the top of the table?
The code is being rendered like this :-
directive's template is at the top and then the thead is being rendered, but thead is expected to be at the top.
here is HTML
<div class="panel_content"&...
-1
votes
1answer
14 views
Angularjs ngRoute not working from jsp to html
I am using ngRoute for simple redirection . I have an index.jsp file which has only the ngView tag. I have script.js where my ngRoute is define. All I need is when I hit index.jsp it should load the ...
0
votes
0answers
4 views
Compatible for RxJs is Spring reactor or RxJava
UI -Angular JS screen has to be a non blocking page, so we are using RxJS oberverable but not sure what we need to have in backend services to subscribe and publish the request from/to UI (whether we ...
1
vote
0answers
29 views
Multiple filter in single function using angularjs
I try to filter two values like this | filter:{voucher_type: selectedName } | filter:{voucher_type: both }
Here both is "B" and selectedName "P or R". Below code work only one filter only.
I want to ...
0
votes
2answers
25 views
What's the difference between angular.equals and _.isEqual?
I mean is there any difference in performance? Which one is able to make the best deep comparison? Sometimes angular's equals function is not able to find every difference.
I have also noticed, that ...
0
votes
0answers
28 views
How to create a dynamic date filter in angularjs?
I want to create a filter base on the date in AngularJS. Can anyone help me?
I can't attain that layout. The problem in my code is that I can't filter the replyDate right. The duplicate replyDate ...
2
votes
2answers
17 views
Java/Angularjs - convert variable names to normal English conventions
My goal here is to retrieve the attribute names from a class, which I have already done using JAVA Reflections. But I want to be able to transform the variable naming convention, say firstName to ...
-1
votes
0answers
13 views
ng filter works only in current active page
ng-filter doesn't work property with a paginated table. Is there a way to take filter results by considering all the rows in paginated table instead, the current active page. ng-filter works well with ...
3
votes
2answers
28 views
AngularJS filling table
I need to create a table with the following object:
this.customer =
[{
cid:"1",
productid:"1",
src:"walmart",
total:"1"
},
{
cid:"1",
...
0
votes
0answers
14 views
How to convert the jquery drag and drop function into angular directive
I want to create two div.
In one div there will be
duplicate items for drag which should not delete after drag.
In another div drop should happen in which take the copy of items from one div and
...
3
votes
3answers
21 views
AngularJS: Returning a promise from within .then?
I have a users service. I would like to create a method which utilizes another service I have built. There are two methods on this service. getUser() and getCurrentUser(). getCurrentUser() utilizes ...