Tagged Questions
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 ...
0
votes
0answers
2 views
How to do a get request with all idRefs
i have 2 models in my project, 1 is stores and the other is products, the stores has a reference to products like this:
produtos: [
{ type: mongoose.Schema.ObjectId, ref: 'Produto' }
],
and ...
0
votes
0answers
7 views
angular 2 deploy on github
How to deploy angular 2 website application on github .Am new to Git and github so just saw the basics on internet and created a repository on github and finally a url was generated in my git bash ...
0
votes
0answers
6 views
angular-soundmanager2 - how to rebuild the playlist?
This is library I use.
For rebuilding playlist I do following:
angularPlayer.clearPlaylist(function () {
angular.forEach($scope.filtered, function (value) {
//$scope.$...
0
votes
0answers
11 views
How to bind unique GUID on row repeat using angular
Am generated guid using angular
//for grid 1
$scope.getGUIDForGrid1 = function () {
var d = new Date().getTime();
var uuid = 'xxxx-xxxx-4xxx-yxxx-xxx'.replace(/[xy]/g, function (c)...
0
votes
1answer
20 views
Changing color of a <td> in a static HTML Table, depending if the BackEnd data is true or not in AngularJS without ng-Repeat
Warning: some words are in french in my code on pictures so I will explain what is about here
This is table I am trying to change the color depending on the true of false value
It is a simple ...
0
votes
0answers
5 views
AngularJS Translation on Json Array
i am trying to implement Angular JS Multi Language Application
i generating json file with list of languages and categories of that languages in json array.
Json :
{
"languages":[ {
"...
0
votes
1answer
24 views
How to make a loading (spin) while requesting to server by $http on angularJS
$http({
method: 'POST',
url: '',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
transformRequest: function(obj) {
var str = [];
for(var p in obj)
...
0
votes
1answer
10 views
angular material placeholders and input/textarea style
I want to use angular material for contact form but I have problem to change styles of input fields and placeholders or labels when is not on focus. I made codepen and if you look there placeholders ...
0
votes
2answers
16 views
Angular parent child scope with service
I'm stuggling with some concepts of Angular, in particular the flow of variable and scope.
What I'm trying to do is to set a variable in a child controller and pass it to a parent scope. Consider ...
0
votes
1answer
10 views
how to create controller for directive in angularjs
i have created menu directive like this in app.js.
.directive('menuShow', function () {
return {
restrict: 'EA',
templateUrl: 'shared/menu.html',
}
});
...
0
votes
0answers
13 views
CORS requests fails if user has “Do not track” enabled
I am using Github Pages to host an angularJS website, and google script for some server side things. My problem is that if the user has enabled the "Do not track"-header on their device settings, my ...
0
votes
0answers
28 views
ng-route get parameters from url
I faced an issue while getting param using ng-route
where param value contain '==' that is remove from URL
index.html#/app/test?param=value==
when use $state.params.param
i suppose the result ...
0
votes
0answers
5 views
upload image for specific user is not working with molter
im trying to do a simple image upload when i submit my registration form, basicly i want to save all the data that i send and then retrive the image for the user when i need, so i did this:
view
&...
-4
votes
0answers
26 views
Clear an array with angularJS
i recently bought an HTML template using AngularJS.
This is a shop where you can add items on your cart, and i'd like to be able to make a function that empty the cart.
When i run this command in ...
0
votes
0answers
10 views
Avoid Angular Carousel slides being on each other at start?
Maybe the carousel is primary made for images. But when using it for text content as I do, all the slide's texts is visibly on each other at the start. That doesn't look good. It's just for half ...
1
vote
4answers
41 views
Angularjs dependency injection uglify
For a while I am using this approach to inject dependencies in my angulur apps.
angular.controller('ctrlName', ['$scope', '$log', function($scope, $log) {
}]);
As you can see, we usually pass ...
-1
votes
0answers
8 views
Deploy angular2-seed project
Can someone help me understand how to deploy Angular 2 app on heroku. I have pull down angular2-seed project from angular repositories. It runs perfectly fine locally but I can't seem to find a ...
0
votes
0answers
9 views
Click outside md-select is not working
select in dialog - angular material - mdpanel
using smaple ms-select
but click outside the select when the options are open is not working.|
how can I fix it ?
thx a lot
html:
<md-select ng-...
0
votes
1answer
14 views
Different index.html for angular app
I would like to use different index.html for my client.
I would like to have a /backend with a index.html and different views (working)
I would like to have a / where I want to implement some forms ...
-2
votes
0answers
12 views
How to log in as an admin in Mean.js?
REFERENCES:
Mean.js github: https://github.com/meanjs/mean
Mean.js website: https://meanjs.org/
https://www.google.com/?gfe_rd=cr&ei=4hKXWIXnO6rC8gf8_7uoDA&gws_rd=ssl#q=make+a+certain+user+...
-1
votes
0answers
14 views
How can I synchronize between different Servlets?
I'm working on a website which has a log in page first and then next page has different sections that view data. The data to be shown is user related which means every user has a different data to be ...
0
votes
2answers
22 views
AngularJS error when POST but works after refresh
I have this function in my controller that sends a POST request to the database (SQLite). The function is bound to a ng-click in the html and when I try to add I get a 500 Internal server error. Then ...
1
vote
1answer
20 views
angular 1.6.1 '&' binding issues
Problem:
When I bind '&' under ng-repeat(or without for that matter atm), I can't seem to trigger the parent scope's function.
HTML
<div ng-repeat="type in fC.types">
<repeater type="...
0
votes
1answer
7 views
Running Jasmine standalone for testing Angular app
So I am currently trying to test my Angular app using Jasmine standalone.
However I can't seem to get even my angular module loaded. It throws the following error:
Failed to instantiate module ...
0
votes
1answer
22 views
show html response as a pdf using javascript or angular
Hi I am new to angular and javascript, I got stuck in a situation i am getting a json response from api in which one key is returning a html response
"data": {
"abc" :null,
"htmlresponse": "<!...
0
votes
0answers
14 views
A specific server route is never called, why? (mean.js)
CODE:
server.routes
module.exports = function (app) {
// Articles collection routes
app.route('/api/articles').all(articlesPolicy.isAllowed)
.get(articles.list);
// Articles ...
0
votes
0answers
16 views
Angular JS : Selecting first radio button in dynamic data set
I have an array of objects over which I do orderby:"Attribute A" ,iterate over it using ng-Repeat and set ng-checked="$index === 0 ? true : false".
Now on same data on click Attribute B U do orderby :...
0
votes
0answers
9 views
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present . Server error
I am using angular js in frontend and java hibernate at backend. My website worked perfectly fine a few days ago but recently I made some changes in the table structure. After those changes when i ...
1
vote
1answer
13 views
$http post request is not adding specified headers
I am making request to my server using $http to my backend for login purpose but even after specifying the headers properly its pre-flighting my request and also adding headers which I never asked it ...
0
votes
2answers
14 views
Angular material md-select - cant open the box with selected user
Hi the selectbox is show the selected item but i cant open the dropdown at all
I am using form in the mdpanel
its not working in dialog on mdpanel
how can i fix it
i need form with edit user and ...
0
votes
0answers
10 views
Match images and URLs with regex in angular filter fails to work simultaneously
I'm trying to create a custom angular 1.5 filter which will take html content (made with textAngular) and wrap url's, email and image urls in tags. Filter works perfectly if there are only image urls ...
0
votes
1answer
16 views
Unable to remove !# from angular routes while using ASP.NET MVC
I am using AngularJS in my MVC application. I am facing the very common routing issue where !# appears in the URLs. I have looked out for solution and found this solution almost in every accepted ...
1
vote
1answer
12 views
ng storage of list at angular
i have a problem that i want to local storage a list and load it but
i found two problems that removing the item does not work well
and local storage is not working
.controller('tasksCtrl', [
'$...
2
votes
2answers
32 views
How to get session from PHP into AngularJS for redirect
I try to made a login system but I want the session can be taken from PHP code. If session login is false or null it will redirect to login page.
Here my run AngularJS code :
app.run(["$rootScope", '...
0
votes
2answers
15 views
Angular Routing won't work
I came across with Angular routing example when I'm following a tutorial. I tried as the tutorial but it won't work. But when I copied the code from the tutorial it works perfectly. Can anyone help me ...
0
votes
1answer
9 views
angular material validate form by external event
I have a multi-part form, and I was hoping to have an external next/prev navigation for it. However, I need to be able to validate each part of the form when I navigate to next.
I have the following ...
0
votes
1answer
13 views
Passing data in $mdDialog and use in html template
I am using $mdDialog dialog and want dynamic header in my dialog template.
I want to send data in popup template.
This is my dialog code.
$scope.showAdvanced = function (ev, Title) {
$...
0
votes
1answer
27 views
What is difference in ways of setting radio button checked=true in AngularJS
If I set radio button default selection using ng-checked="$first" then it got checked. If I use ng-checked="true" radio button doesn't get checked?
Kindly explain when this can happen?
I cant use $...
0
votes
1answer
13 views
Invoke angular function in console
I am a novice.I have a line of code like this that was written for me.
<a class="pull-right btn btn-primary" ng-click="addWidget()"><i class="glyphicon glyphicon-plus"></i> Add ...
0
votes
0answers
12 views
Injecting $location service makes my url with fragment identifier weird
Here is my angular code
var app = angular.module('app', []);
app.controller('mainController', ['$location', '$scope', '$log', function(location, scope, log) {
log.info(location.path());
}]);
And ...
2
votes
3answers
33 views
How to filter by an specific attribute in an object in AngularJS?
I have object in AngularJS:
genres = [{
label: "Trance",
genre: "8",
position: 8
}, {
label: "House",
genre: "2",
position: 8
}]
How to filter this array by genre by ng-...
2
votes
1answer
49 views
Drop down list and values
I having a problem in setting the values of dropdown list. Here I am pasting my code.
HTML Code:
<form ng-submit="save()">
<table style=" table-layout: fixed;" class="table">
<thead&...
1
vote
0answers
19 views
How do I prevent html element from being pushed down when dragging an element over?
I'm writing an angular directive using HTML Drag & Drop API. The directive works fine however it adds up an empty space between the elements when dragging an element over the other.
For instance:...
1
vote
1answer
10 views
angular material error shows on the input field
i am use sample angular material input (on dialog)
<md-input-container flex="50">
<label>Client Name</label>
<input required name="clientName" ng-model="user....
0
votes
0answers
20 views
angular.js limitTo and groupBy in ng-repeat not working
Hi have a custom filter in ng repeat, which just wont work. Am i doing something worong, or is there some usage limitations of ng-repeat filters which am missing?
Here is the code:
<div ng-repeat=...
2
votes
1answer
22 views
AngularJS Routing to different page with different controller
I have two HTML pages. One is the exam.html and other is result.html. On certain condition in the controller ExamCtrl of exam.html, I route to result.html using $location.path. But however, on the ...
1
vote
1answer
14 views
How to store and get a array values in cookie with Angular version 1.5
I need to push value in array and stored in cookies when user click on GO button.
if value is more than 10 i need to remove the first added item in the array and updated cookies , displayed in front ...
-2
votes
0answers
11 views
Scroll to bottom arrow should get changed to up once reaches to bottom,similar to “about gmail page” angular js,css,html
Need to have Scroll to bottom and scroll to top action along with up arrow down arrow in the web page, arrow gets reversed, changes direction to up once reaches to bottom when we click on scroll icon....
1
vote
3answers
40 views
AngularJs ng-repeat custom structure
I have a dataset like this
$scope.dataset= [
{"Name":"Alfreds Futterkiste","City":"Berlin","Country":"Germany"},
{"Name":"Ana Trujillo","City":"México D.F.","Country":"Mexico"},
{"Name"...
0
votes
1answer
17 views
geocode inside a function in a controller
I try to get a get code by a function inside a controller. Then I got this error:
Error: [$rootScope:infdig] 10 $digest() iterations reached. Aborting!
Watchers fired in the last 5 iterations: []
It ...