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
1answer
16 views
No Data shown (Oauth2, Spring Boot, AngularJS) convert from ngRoute to UI.Router
I just want to switch from ngRoute to ui.router and hope my request is right here because I am new to ask questions
I take the basic sourcecode from https://spring.io/guides/tutorials/spring-security-...
0
votes
0answers
8 views
Change color of a column in highchart with a default color
I have to change the color of one of the columns in highcharts. I see what we can change it for the entire series but haven't been able to figure out changing it for only 1 column. This is how the my ...
0
votes
1answer
11 views
How can I place a option has selected in AngularJS 2?
I'm trying to figure how to make a option selected when displayed, using old javascript style code or other language I would place a
for example :
<select>
for (x =0 ; x < elements.size ; x++...
0
votes
1answer
20 views
For loop of HTTP requests not working (Node.js, S3, javascript)
I'm pretty new to this. Any help would really help!!!!!!
Basically it's a system where Angular runs through an array of files and then makes upload requests to the server. The first step that the ...
6
votes
2answers
78 views
+100
Validation error message doesn't appear for custom Angular Formly field
I'm trying to use Angular Datetime Picker as a Angular Formly input type. I've got it working such that I can edit and set a value that is correctly added to the binded model.
However, I can't get ...
0
votes
1answer
15 views
Parent and child scopes in angular
Can anyone please provide me with simple examples to understand parent and child scopes in angular better?
I have tried the following but it prints hello {{person}} as output.
<!DOCTYPE html>
&...
0
votes
1answer
40 views
how to group common elements in list depending on same keys in javascript
I have following data
Table headers: name , type, version,check
[["FoxService","XML","1.0",null],
["JsonRest","JSON","1.0",null],
["JsonTest","JSON","1.0",null],
["...
0
votes
2answers
27 views
click on getElementsByClassName with where
<a class="contacts" ng-click="contactSelect(contact.userID)">
<!---->
<span ng-switch-default="" my-user-status="::contact.userID">Hello World !</span>
<!----&...
0
votes
0answers
9 views
Angular with express ejs
I am having a problem getting my partials to show inside my index.html
this is a view of my file tree:
tree structure
and my index page looks like this
index.html
So I am not sure what else you ...
0
votes
0answers
7 views
Best way to login to wordpress with Angular
Using Angular, I am trying to post a Wordpress CPT from the front.
It works fine when I'm logged in, using $http.post to RestApi,
and with x-wp-nonce included via the interceptors:
$httpProvider....
0
votes
0answers
4 views
Ionic autoComplete input issue
I am currently building an Ionic application and I am trying to implement the ion-autocomplete feature. I just finished to write it but my <input /> doesn't shows up (I am using ionic serve --...
0
votes
1answer
13 views
how to navigate one route to another in angular 2
I make a two different component of angular 2 .I am learning routing from this link
https://angular.io/docs/ts/latest/tutorial/toh-pt5.html
I make two component .In first component I have one button ...
0
votes
2answers
780 views
angular2 quick-start without using lite-server
My quick-start runs fine with default installation .
however, I don't want to use lite-server since I have already got node.js installed.
Is there anyway to change the package.json command to ...
0
votes
0answers
14 views
Get post id from link when a link is cliked using AJAX app.js
Hello I am new to angular and I dont even know how to do this. I want to get the id or other column name from my database of specific data to show its informations to another page. Here's what Im ...
0
votes
0answers
30 views
How to insert an option using AngularJS
I have a simple video tag that I would like to change the option on from autoplay to pause and back and forth.
HTML:
<video webkit-playsinline {{playa}} loop ng-src="{{keeper}}" style="width:100%...
2
votes
1answer
14 views
Grunt Node and Express Local Dev HTTPS Certificates
I'm trying to make a start at Service Workers and read you require to have an ssl cert.
I've Got an AngularJS 1.x application and a Node Express back end, and I run both independently so I I use ...
5
votes
4answers
2k views
How do I set ionic serve to use Chrome as the default browser?
I want to run ionic serve with Google Chrome.
I've tried:
ionic serve --browser chrome
ionic serve --browser google-chrome
But that doesn't work. I can get it to use firefox if I type:
ionic serve ...
1
vote
5answers
246 views
ngHide directive only works with ngRoute module after page refresh
When I login on my app, I want the login and signup button to disappear from the nav so I am using ng-hide directive if the login was successful and a token was received from the server, which I store ...
0
votes
1answer
10 views
Why the graph is not showing up on webpage using AngularJs?
This is my index.html file
<body ng-controller="MainController">
<select ng-model="chartType">
<option value="pie">pie</option>
<option value="bar">...
0
votes
2answers
14 views
$http.post return 422 with angular and grails
I am using grails 3.x as the restful service provider. A simple rest resource is provided like:
@Resource(uri ='/users', readOnly = false, formats = ['json', 'xml'])
class User {
String username
...
0
votes
3answers
43 views
How can I get the window width in angularJS on resize from a controller?
Ho can I get the window width in angularJS on resize from a controller? I want to be able to get it so I can display some div with <div ng-if="windowWidth > 320">
I can get the windowWidth ...
1
vote
1answer
14 views
Angular 1.3.8 routing not working without errors
I am following a book called MEAN Machine. The code from the part in this book in question can be found at this Github Repo.
When clicking the links in /public/views/index.html which should be routed,...
0
votes
0answers
10 views
Best Practices For Django Web App + REST API Architecture as one project
I am working on my Django project which is going to be a Web App and REST Api for the mobile app.
I am using Django Rest Framework to build the API for the mobile app and it is going pretty good. I ...
3
votes
2answers
2k views
Angular.js add #%2F on URL when set $locationProvider.html5Mode(true).hashPrefix('!')
After configure: $locationProvider.html5Mode(true).hashPrefix('!')
when i enter url : www.example.com/search on browser(chrome) and press enter then it turn into : www.example.com/#%2Fsearch and then ...
0
votes
1answer
32 views
AngularJs 1 routing not working
My folder structure is:
-ngTest
--Scripts(all js files)
--index.html
--main.js
--partialView.html
index.html code is as follows:
<!DOCTYPE html>
<html ng-app="myApp">
...
0
votes
0answers
10 views
How to check checkbox of devextreme dxgrid column chooser from external button
I am working on dxgrid in angularjs, where I have column chooser to show/hide grid columns. I also have one functionality to show hidden columns when user clicks on outside Reset button. When I open ...
1
vote
2answers
2k views
Angularjs Request header field Access-Control-Allow-Headers is not allowed by Access-Control-Allow-Headers in preflight response
I know there are lot of duplicate questions.I tried all the solutions given there but still not working.
XMLHttpRequest cannot load http://localhost:3000/api/create. Request header field Access-...
65
votes
10answers
115k views
Request header field Access-Control-Allow-Headers is not allowed by Access-Control-Allow-Headers
I'm trying to send files to my server with a post request, but when it sends it causes the error:
Request header field Content-Type is not allowed by Access-Control-Allow-Headers.
So I googled the ...
5
votes
3answers
17k views
Request header field is not allowed by Access-Control-Allow-Headers with $http
I'm doing a POST to a service using Postman Chrome Extension, and I get the expected response.
But, when I do the same POST request using $http, all goes to hell.
I get a :
Request header field ...
0
votes
0answers
10 views
How to implement 'Open on focus' to Angularjs calendar?
I am new to Angularjs, how can I add open on focus implementation (similar as Microsoft Windows 7 calendar) to my calendar as given below where we using Angular material version1.0.1. We decided not ...
0
votes
1answer
15 views
Angular Js- Why If condition is not running?
Hi I am trying to run this chunk of code where I am comparing two values but seems like the comparison is not working .
for (var i = 0; i <= $scope.subcats.length - 1; i++)
{
...
0
votes
1answer
15 views
angular js state provider with dot in url not working
I am using angular js state provider. I want my url like this.
http://localhost:8080/state1/state1.html . It says "Cannot GET /state1/state1.html".
Here is the code
$stateProvider
.state('state1'...
0
votes
1answer
30 views
Adding AngularJS directives and CSS classes to Twig template body block {% block body %}
I'm building a Rest API with Symfony 3 and Fosresbundle and I use AngularJS to retrieve JSON datas inside twig templates.
For some reasons, I need to set angularJS directives and css classes just in ...
-3
votes
1answer
30 views
How to enable Cors in ASP.NET Web Api
I'm learning Angular 2. This is my service that's supposed to pull data from an ASP.NET Web api application.
@Injectable()
export class ExpenseService {
private _expUrl = "http://localhost:65400/...
0
votes
0answers
21 views
angularjs ui.router activestate with dropdown
I'm trying to create my menu which have a dropdown for multiple link in the application.
i want it to be "active" while one of the link below is active.
i got the link in my dropdown to be active ...
0
votes
1answer
51 views
+50
Upload File to ASP.net Core API using Angular
I have been searching for this for about 2 days and there are many posts about this, but I cannot wrap my head around what I want to do.
What I want:
I want to upload a single file to the API using ...
0
votes
1answer
22 views
Can we display multiple months in the angular UIB date picker
on Page load can we able to display the two months calendar using Angular UIB date Picker.
Here is the HTML:
<html ng-app="ui.bootstrap.demo">
<head>
<script src="//ajax....
0
votes
0answers
10 views
How to access HAL _links within _embedded resources with JavaScript / AngularJS
I appreciate there are several libraries to work with HATEOAS linkrels in HAL format, but I would love to learn more about accessing _embedded resource(s) and its _links in the most basic - or I guess ...
-1
votes
0answers
16 views
Angular2 module error CUSTOM_ELEMENTS_SCHEMA
I'm using Angular2, typescript and systemJS.
The error is with my login page.
It used to work fine until I lazy loaded the route.
I've added the CUSTOM_ELEMENTS_SCHEMA to the module, as I've seen ...
0
votes
1answer
21 views
This routing code is not working
This code is not working properly
<script>
var app = angular.module('myApp', ['ngRoute']);
app.config(function($routeProvider) {
$routeProvider
.when('/', {
templateUrl : '/index....
0
votes
0answers
17 views
how to setup swiper slider in ionic application
hi i tried to setup swiper in my ionic project but it doesnt work/showed please help
you can see my code at this link below
there is three file
apps.js
$scope.swiperOptions = {
/* Whatever ...
1
vote
1answer
20 views
Working with Yelp API and/or Google Places api
Hi I have a project assigned to me for school that requires the use of either google places API or a Yelp API for the purpose of allowing users to search local restaurants or bars near a given ...
0
votes
1answer
21 views
Angularjs:open on focus feature to my calendar
How can I add open on focus feature(similar as Microsoft windows 7 calendar) to my calendar as given in demo where we using angular materiel version1.0.1, please help me with solution.
Thanks In ...
0
votes
1answer
16 views
# appearing in URL for UI.Router
I had an issue a few days ago where I would get a random # inside the URL like:
http://localhost:55462/#/forgotpassword
I asked a question about this and added this inside my app.config section:
$...
0
votes
2answers
14 views
How can I round off value in dynamic col-md-(value) in Angular Js?
Hi I have some fields which are coming dynamic and I am adjusting the col-md- according to number of fields. So I wrote an expression some thing like this <div class="col-md-{{12 / variants.length}}...
0
votes
1answer
41 views
Thinkster.io MEAN Stack tutorial: An empty “post” displays on the index page. Why is this, and how do I get rid of it?
I am currently working through Thinkster.io's MEAN Stack tutorial.
I am on the part where the node.js backend wires up with the Angularjs front end. I have data persistence for users to add posts, as ...
0
votes
0answers
28 views
Why is jQuery in the Angular Controller bad?
People seem to be against the use of jQuery from the Angular controller. Why??
Suppose you have:
<div id="test">{{test}}</div>
<button class="btn" ng-click="foo()">test</button&...
0
votes
0answers
7 views
How to make Authorization control better in angularjs based on the url access level [on hold]
I have some urls with access level defined in database, say url /A/a/1 has access to a particular user as view only. then what I want is that I want to make some factory/services based on the level of ...
0
votes
0answers
15 views
Filter bootstrap columns based on column label
I have a bootstrap columns as below (4 columns per row and many rows likewise), I need to filter the columns based on the label (General,Movie,Drama,etc...), something like this http://codepen.io/...
0
votes
2answers
24 views
Updating model in angular doesn't cause updating components variables in Angular
I have problem with understand why Angular doesn't decorate variables in my component if I update it in controller:
ctrl.myVar.attr = "decorated_" + ctrl.myVar.attr;
after click on button in following ...