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 apps are also frequently known as Single-Page Applications. The ...
0
votes
0answers
2 views
Change ion-nav-button when form gets valid
Is there a way to disable/enable a ion-nav-button when a form is validated?
As I see, they do not see each other, because i tryed ng-show="myForm.$valid" and it didn´t work.
<ion-nav-buttons ...
0
votes
0answers
2 views
How can I set the browser size in a Protractor Test
I'm looking for the Protractor to run in the maximum browser size before the actual tests start running.
I think you have to use a beforeAll() function, but not sure how to set the size? Any ideas?
0
votes
0answers
3 views
how to get input field name through event object in angular 2
I am not sure whether its logical to get.
Here is the html code for my input box.
<input type="text" id="name" #name="ngForm" [ngFormControl]="userProfileForm.controls['name']"
...
0
votes
0answers
5 views
ng-repeat inside of ng-repeat- filters not working
I am displaying the ng-repeat content in two columns.
Using this code works fine:
<div class=storerow ng-repeat="store in stores track by $index" ng-if="$index%2==0">
...
1
vote
0answers
8 views
Can't pass date string in datepicker element
What I want to achieve here is I have a default string variable for date, and I want to pass it into the datepicker
<div class="pure-u-1-3">
<div ...
0
votes
0answers
2 views
Multiple FabricJS Canvases dynamic loading to single page
I am having trouble with having multiple fabricjs canvases dynamically on on html page. using angularjs and a controller.
<div ng-repeat="t in vm.imagetags">
<div ...
0
votes
1answer
10 views
When i receive puch notification , the new one is replacing the old one . How can i keep them both?
Sending notificaion from server :
var req = {
method: 'POST',
url: 'https://gcm-http.googleapis.com/gcm/send',
headers: {
Content-Type': 'application/json',
...
0
votes
0answers
9 views
Can I count instances of item in SQL using Angularja
I have a site using Angularjs that is connected to an SQL database. All database entries got the properties "Player Name", "Team" and "Region". I have a table where I list them all using ng-repeat, ...
0
votes
0answers
4 views
how do I control output from angular-moment
I am using angular-moment library. Essentially, I want to show the time difference in minutes between now and some time in the model. Ideally, the display must be dynamic; so the user doesn't need to ...
0
votes
2answers
16 views
Character added if 2 spans have data
So I have the code shown below. The UI allows the user to select a single date, or select a date range. These are in span tags and there is a "-" I am trying to add if the toDate has a date, ...
0
votes
0answers
3 views
Highcharts xAxis labels formatter callback data empty
I'm new to Highcharts and need to use the xAxis.labels.formatter function to generate labels. The problem is that when the formatter function runs, the data is empty. If I click on the legend the data ...
0
votes
2answers
12 views
AngularJS .success method and .then method
Hi I need help with Angular JS
instead of using .success and .error how can I build this code using .then and .catch? I guess simply changing .success and .error to .then and .catch doesn't work.
...
1
vote
0answers
4 views
How can I set up the browser size before my protractor test runs?
I have the following protractor test listed below. It runs fine. But I need to add some code that opens the browser to full screen since my test is sensitive to pixel location of gridster tiles. How ...
1
vote
1answer
9 views
Use Angular Material in only a portion of a page
I am interested in using a Angular Material based contact form on a Shopify hosted page. Because the rest of the site is not built with Angular Material (yet), I would like to implement this contact ...
1
vote
0answers
5 views
Anuglar Material Select looses values when selecting one
I am build a selection with the angular material select method. Everything looks fine however, when I am selecting a value from the ng-options, I am loosing all of the other values above. That means, ...
-1
votes
2answers
13 views
How to insert value in option - AngularJS
I'm newbie with AngularJS
I'm not able to get the correct tag "value" of each option
http://jsfiddle.net/gislef/x8mcrkju/1/
In the DOM, options, displaying this value = "object: 3" value = "object: ...
0
votes
0answers
6 views
ng-change not fired with app generated from yeoman angular-fullstack 3.6.1
I create an application with yeoman and [email protected],
and I get something like this (I've added the myfunc function myself)
client/app/main/main.js
'use strict';
...
0
votes
3answers
17 views
Send FormData with other field in Angular
I have a form with two input text and one upload. I have to send it to the server but I have some problem concatenating the file with the text. The server expects this answer:
"title=first_input" ...
0
votes
1answer
14 views
Complex HTML structure in ngRepeat with a deep Scope object makes things slow
this is more asking for opinions or some solutions people may have come across. I render a list of airline Itineraries based on a $scope object fetched via an API. All in all there can be up to 150 in ...
0
votes
0answers
16 views
Why have Multiple Controllers per View?
We have a new guy at our office that says that I need to break each of my controllers up into several controllers. Currently, each of my Controllers serve one View (page) each in my application. I ...
0
votes
2answers
16 views
Custom Function in AngularJS Service
So I am trying to calculate the discount price applied on items/products, based off of two variables: the Retail Price and the Sales Price.
I created a function inside my AngularJS Service, called ...
0
votes
0answers
8 views
How do I prevent the top-bar dropdown from closing when clicking an element?
I'm using Foundation, and I have this code now:
<top-bar scrolltop="false" class="row" is-hover="false">
<top-bar-section>
<ul class="right">
<li has-dropdown>
...
-1
votes
1answer
13 views
AngularJS read JSON from user upload
I would like to allow user upload a JSON file and assign the content of the JSON file to a $scope variable.
After the content of the file is been assigned to the scope variable, I want to totally ...
0
votes
0answers
2 views
How to get the ngtable header as the examples
Click here to see the image
How can we get this look in the ngTable headers?
There are two arrows for sortable columns.
If youi click it, it changes the color.
Is there an easy way or I must make ...
0
votes
0answers
8 views
Angularjs ui router and query string not decoded
In angularjs with ui router i have the following state:
.state('ConfirmEmail', {
url: '/ConfirmEMail?userId&token',
templateUrl: 'Views/UserConfirmEmail.html',
controller: ...
0
votes
1answer
10 views
Laravel 5.2 with Angularjs route
I followed this tuturioal (http://learninglaravel.net/laravel-52-and-angularjs-crud-with-search-and-pagination-example/link) and it works only using:
php artisan serve
When I try to access by ...
0
votes
1answer
11 views
How do I start a MEAN stack project in Webstorm
I am new to WebStorm and I want to do a project using the MEAN stack.
When I create a new project I have several hypothesis, two of them been:
Node.js Express App
AngularJS
Since the MEAN stack ...
0
votes
1answer
25 views
$http using a rest Controller in Angular 1.4.8
I'm recently new in AngularJS and I'm trying to use an alias on my controller to call the data that is comming from a $http response factory.
What I've done right now is what it follows:
...
0
votes
1answer
13 views
Bootstrap affixed sidebar being overlapped by main content in Angular app
I have an angular app with some nested views that might be causing the problem but I just can't pin it down. Whenever position: fixed is added to the sidebar the main content moves over and overlaps ...
0
votes
1answer
29 views
Unable to pass data on row click
What am i doing wrong int the below code. I am not getting any error also I am not getting the results.
1. The alerts are appearing.
2. I tried harding the ceid value still that value si not ...
-1
votes
0answers
9 views
angular.config passing in value via constant variable
Who can help me out with passing in values from a controller inside a config() of Angular.
Already tried some things with constant(), but can't get it to work.
There is this:
...
-1
votes
1answer
18 views
Removing Double Quotes and Square Brackets JSON
I am retrieving info from Amazon API with my server file (node.js)
client.itemLookup({
idType: 'ISBN',
itemId: 'B00S51XHUQ, B00P3IX4V6',
responseGroup: 'Offers,ItemAttributes'
...
-1
votes
1answer
13 views
Storing data before committing to data base, wait for approval of admin
My issue is the following:
I'm building a mobile app using Ionic framework, so the front end is essentially a single page AngularJS app. I'm using Django Rest framework as the backend.
In the ...
0
votes
2answers
15 views
Angular forward slash “/” as state Url
What I am trying to achieve here is the following.
I want to create a state Url with just a "/" that will get called no matter what route we are on.
currently not working, am sure I am missing ...
0
votes
0answers
14 views
How to print a div section with the document style sheet css intact?
How do I print a div section with the style sheet/CSS of the parent.
Is there a way to create a new DOM and hide all elements except the CSS and the div section to be printed.
I am using ...
0
votes
0answers
12 views
Unable to test a method using Jasmine
How to test the return value of dialog.button in Jasmine?
angular.module('employer').factory('popFactory', function($window) {
var dialog = {};
dialog.button = function(){
...
1
vote
2answers
19 views
Angular 1.4 parse contents of ng-bind-html
What am I doing?
Briefly: I have an array of objects called $scope.myData and a string called $scope.layout. What I want to do is have a span with ng-repeat="x in myData" and also ...
3
votes
2answers
27 views
Searching through JSON Object with ng-disabled (AngularJS)
One of the features of my web application is the possibility to add new users (username + password) through a form. Thereby, I have one JSON object (l_usernames) defined in a controller ...
0
votes
1answer
17 views
Loading custom directive dynamically by assigning it to controller scope
I am trying to load my custom directive dynamically on click of a button. On click, I would make an AJAX call to get the directive html. Once i get a response, i compile that response and assign it to ...
0
votes
3answers
26 views
How to ng-show some html content base on the current route?
I have a single page with angular and the content look like this:
And when I click on some tab, for example "Servicios", the services content is shown under the tabs.
Here is the respective code:
...
0
votes
0answers
12 views
Change detection in Angular 2 breaking button event. Have to click twice
I have a service that provides an array of objects that allows binding infinite number of model binding in each object. The service is accessed by a directive (component) and updates the view when the ...
0
votes
0answers
5 views
Upload Large files using DropZone.js are failing with error code 0
I have created a website for file upload based on https://github.com/vberbenetz/EasyUpload.
This is a Spring Boot project using DropzoneJS and AngularJs with Tomcat as a listener on 8080, uploading ...
0
votes
2answers
23 views
Angular 2 Rc.1 router not loading "/' component
I am attempting to use the new router from the rc.0 release. (Actually using rc.1) However I can't get the outlet to load the "Welcome" component.
Here is the app.component.ts
import { Component } ...
-3
votes
0answers
11 views
When to use ng-include in angular js ? Is there any performance bottle neck if we use too many ng include..? [on hold]
In one application I saw so many nested ng-includes. Is it a best practice to have so many nested ng-includes even if those partials are not used in other places. Please guide me in identifying the ...
1
vote
1answer
16 views
angularjs 1.x support lifecycle
I am currently managing an AngularJS development project. There is talk that we need to move to at least AngularJS 1.5 from our current 1.2. One of my requirements to move is that I have to provide ...
0
votes
0answers
2 views
Grunt's grunt-connect-proxy task solves CORS issues?
I have developed a client app with HTML and AngularJS and a rest api on ASP.Net Web API. Both applications will be deployed separately. When I run them on localhost (the client on 53313 and the server ...
2
votes
1answer
11 views
Save Angular-nvD3 Chart to PDF File (AngularJS)
I would like to know how it is possible to save to a PDF file an Angular-nvD3 chart? Which is the most suitable PDF generation solution for this situation? Thank you.
There is an example of a chart ...
0
votes
1answer
12 views
How to set a breakpoint in HTML-code with Google Chrome Developer Tool in the context of AngularJS?
I have the following line of HTML-code i.e.:
<button ng-click="round.won=true" ng-class="{'active':round.won && !adjustedYesNo}" class="button button-outline">Gewonnen</button>
...
0
votes
2answers
31 views
Loop in directive and ng-change Angular JS
I have the next problem, I created a directive in Angular JS to check if input is or not a number, If it isn't number is neccesary set the right value. Here is my directive code:
...
0
votes
0answers
16 views
route user after user verification in node js
I am working on a wierd code and its really too late to change it structure because short time of delivery. i have a file called
database.js ; this file have following function
function ...