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
3 views
Can not get angular routing to work
I'm diving into angular and this is pretty basic. I can't get this routing thing to work. Essentially this is what I have
<!DOCTYPE html>
<html ng-app="panel">
<head>
&...
0
votes
0answers
8 views
XMLHttpRequest cannot load http://localhost:57997/Home/Get
While i'm trying to access WebApi from Mvc im Getting This Error
XMLHttpRequest cannot load http://localhost:57997/Home/Get. No 'Access-Control-Allow-Origin' header is present on the requested ...
0
votes
0answers
10 views
AngularJS: how to update key of $scope associate array on checkbox select/unselect?
my PHP programming return following JSON via AJAX which is being set in a scrope variable $scope.roleAssigned which then eventually generates an Accordian with a table and checkbox:
$json2 = '{"...
0
votes
0answers
6 views
Run code before routing Angular2
I'm currently building an app in Angular2, with this homescreen:
<div id="freewall" class="free-wall" data-min-width="1840" data-total-col="5" data-total-row="4" data-wall-width="1873" data-wall-...
1
vote
1answer
19 views
Font Awesome showing in the browser but not in any android device
I have added font awesome to my ionic 1 app , I have created fonts folder and reference the style sheet in the HTML page ,
The icons showing in the browser but not showing in any android device.
-2
votes
1answer
13 views
Which is best tool for writing a programming blog
Recently i have came across writing a blog(with programming) but didnt find one which is aptly suitable.Can anyone please suggest me help regarding this.Thanks in advance.
0
votes
0answers
18 views
Prevent multiple select to have the same value
What it should do
I want to prevent the user to be able to select twice the same option in multiple <select> having the same options.
What it is doing
When selected a value on the first ...
1
vote
0answers
17 views
reason for executing another function when ajax calling
I am working on a project where there is a page having a input field named balance and the div containing this field is balanceDiv.for admin this field will not show.so i use ng-show to hide/show that ...
1
vote
2answers
21 views
AngularJS routes with Express Server
I've started with Angular routes and Express together. When i click a route link, url change but nothing happens, Here is my code.When i click on a href , it change my url with something like that "...
0
votes
3answers
23 views
Loading images using ng-repeat
I'm new to Angular.js and I'm trying to use ng-repeat and ng-scope to load a list of names and images from a txt file. However; after loading from a txt file it appears as though it can't read the ...
0
votes
0answers
5 views
angular-cron-jobs configuring the timezone
for sending cron to server I am using the angular-cron-jons but I want to generate the different timezones.
It it possible to configure different time zones in this plugin.
0
votes
0answers
6 views
how to force webpack to load umd bundle of a library
I'm writing an angular1 + angular2 hybrid application which uses webpack as package bundler.
In my code I import a library (@angular/upgrade) in this way
import { UpgradeModule } from '@angular/...
1
vote
0answers
39 views
Post Request from Nodejs to Nodejs
I have a nodejs-express server (1) that communicates with a mongodb and a web server (2) in nodejs-express with Angularjs. I am trying to make a post request 1->2 but I am getting 405 Method Not ...
-1
votes
0answers
10 views
How to do responsive grid in ionic?
i did a simple periodic table app in angularjs (w/o mobile in mind) but now i'm trying to convert it to a mobile app and i chose ionic.
My question is how do i make a certain view fit in the mobile ...
0
votes
3answers
21 views
How to run NodeJS API with Angular app.js file?
I'm following a few tutorials I found online for creating a web app that uses a RESTful API with the MEAN stack.
I'm having trouble implementing both the API server and the Angular routes together. I'...
1
vote
1answer
22 views
Table with full month view with ng-repeat?
wanted to create a table just like this
(ignore the styling). i got confuse how to formate the data to make this table in html.
$scope.toddlers = [
{
"name": "a",
"day": 1,
"total": 3
},
{
"...
0
votes
1answer
12 views
the data in model personalDeatail.add value is not updated automatically. what am i doing wrong?
I'm trying to add two column data automatically but the data in model personalDeatail.add value is not updated automatically. what am i doing wrong?? I can get the added data in the input box but same ...
0
votes
0answers
9 views
how to calculate height iframe in ng-bind-html content
I have an iframe in scope variable.
Like This
myapp.filter('mysce', function ($sce) {
return $sce.trustAsHtml;
});
$scope.test = '<iframe compile="details" frameborder="0" ...
-1
votes
1answer
20 views
i am trying to create a simple login app with angularjs using routing but event is not handled
i am trying to create login app using only angularjs,i have used routing of angularjs initially div in which "ng-view" is defined routes to login page .but after entering the username and password ...
-3
votes
1answer
20 views
How to add angularjs in a symfony2 project
I have a problem installing angular in symfony that is already created
Is there a documentation or tutorial?
thanks
0
votes
1answer
32 views
get string to ng-model value angular js
I have 10 input fields each of them looks like:
<input type='text' ng-model='value1' ng-keyup='checkValue($event)'>
now inside my angular controller, the checkValue function is
$scope....
-2
votes
2answers
23 views
How to call a function from controller to service in Angular JS
Here is the code..
Service:
self.getNewCourses = function() {
return "temp variable";
}
Controller:
$mmCourses.getNewCourses().then(function(data) {
$scope.names = data;
alert($...
2
votes
0answers
21 views
getting unathorized error while accessin basic authentication api in angular js
I want to get data from api (having basic authentication). I'm passing username and password but still I'm getting unauthorized error. How to resolve unauthorized error.api sending json data but I'm ...
1
vote
0answers
32 views
convert Jquery to simple javascript
thanks for your help in advance.
Can anyone help me convert the following Jquery to javascript
<!--script-->
<script src="http://code.jquery.com/jquery-latest.min.js" type="...
0
votes
2answers
27 views
How Angular orderBy with date string?
How Angular orderBy with date string?
I am trying to use the orderBy to sort a ng-repeat.
Our data currently uses the valueList for the filter which isn't working.
I believe they are sorting ...
0
votes
0answers
17 views
how to update a cached get request in angular
i just want to know how and where can i use $watch to update a data that i received with http get request with cache:true option.i just started working with angular.
service :
app.factory('customer'...
0
votes
0answers
17 views
Crud operation in MEAN
I am noob to MEAN, developing the demo project in MEAN(Mongo-Express-Angular-Node). I have successfully done the part of select and delete. However, i am stuck with edit/update operation. Below is the ...
0
votes
2answers
18 views
How to keep default scope data even when scope data changes?
Keep default $scope data even when scope data changes.
$scope.data={"a":"hello world"};
$scope.data.a="changed data";
now become
$scope.data={"a":"changed data"};
how can i get old $scope ...
0
votes
1answer
30 views
Angular JS Issue
I want to edit row of data table(which is coming from some rest api call,the data in datatable is populated through angular js).
My Question is I need to add one input field in each row and when I ...
-3
votes
0answers
7 views
NVD3-Horizontal Bar Chart, how to implement vertical scroll bar keeping horizontal axis fixed [on hold]
I am using NVD3-Horizontal Bar Chart. i have 100 record to display. I want to keep horizontal axis fix and vertical axis with scrollbar . how to achieve this.
0
votes
0answers
15 views
Angular Fullstack is not working for Yomen
events.js:160
throw er; // Unhandled 'error' event
^
Error: Cannot find module 'generator-ng-component/generators/route'
at Function.Module._resolveFilename (module.js:470:15)
at Function....
1
vote
0answers
13 views
Unable to display the specified slide in ion-slides using its index number
Here is my code to implement slides using ion-slides
HTML file
<ion-slides options="options" slider="data.slider" >
<!-- status view -->
<ion-slide-page ng-repeat="t in business"...
0
votes
1answer
36 views
Promise is not working while forming an array
iam trying to form an array of resulting an object using "Promise" in my server side but the array is not printing after the total objects were pushed to that array it is showing an empty array
here ...
0
votes
0answers
7 views
Refused to load the font ''data:font/woff;base64,…" in Ionic Framweork
getting this error in a console
Refused to load the font 'data:font/woff;base64,d09GRgABAAAAAGVUABEAAAAAxuQAAQABAAAAAAAAAAAAAAAAAAAAA…...
0
votes
2answers
23 views
creating a service which holds values to be updated later with separate controllers
I am trying to create a service which holds values that I want to be able to update from other controllers. It's a fake financial tracker which allows me to update the values in this service. I can't ...
1
vote
2answers
35 views
pass a value to javascript function from angular js
I want to pass a value from Angular to a Javascript function. Angular code to render the element is:
<button class="btn btn-danger" ng-click="chatNow('{{patient.id}}');">Chat </button>
...
0
votes
0answers
20 views
Google Maps using angularjs (ng-map)
Hi i am having problem in google map, When i enter one address i am getting correct latitude and longitude but map marker is not showing correctly, attaching my code below please look into it where i ...
-1
votes
0answers
11 views
how to make tag using angularjs using dabase's value?
What i want is shown on the image. I want to get value from autocomplete (skill table) and make a tag list (like stackoverflow or upwork ) then post to database. I have .
How can i do this? I also ...
0
votes
1answer
33 views
Can't set headers after they are sent at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:344:11)
I get error when push child row record (add Histories) from two clients which enter this add Histories page at the same time. It works fine if only push child record one by one client (i.e, enter add ...
2
votes
1answer
15 views
Angular - Binding the following data via ng-options for a select field
Given the following code:
http://jsfiddle.net/KN9xx/1102/
Suppose I received an ajax call with the following data I pass to a scope variable:
$scope.people_model = {
"people":[
{
...
0
votes
0answers
20 views
Bootstrap validator with textarea in ng-repeat
I have a textarea inside a ng-repeat. I am trying to validate using the Bootstrap validator, but the validation is not working.
<div ng-repeat="Descriptions in testWithDescription ">
<...
0
votes
0answers
27 views
Angular throws “Uncaught TypeError: Cannot read property 'charAt' of undefined” with password input
I'm getting the following error when submitting the form.
Uncaught TypeError: Cannot read property 'charAt' of undefined"
It seems to be related to the input type being set to "password" as the ...
3
votes
1answer
23 views
Custom validator not getting called
Having trouble get an Angular 2 custom validator working using the
approach from the cookbook.
My primary goal is to learn Angular (which is to say, I'm a noob, as
always).
I'm trying to have a text ...
3
votes
1answer
21 views
Have links use AngularJS routing instead of MVC routing
I have a SPA which uses an AngularJS front end and C# back end. The issue I'm having is when I navigate to the login page, it is using @Html.Partial("_LoginPartial"). The url then becomes .../Account/...
-3
votes
0answers
34 views
using an html file as a landing page [on hold]
I am trying to create a small website that will help me learn JS, angular, jquery better. There are many angular js templates that use one index page for all of the css and js files and I was ...
0
votes
1answer
19 views
$stateParams empty in my controller
I have this code to another state :
<a ui-sref="tasks.add({projectId : 4})">
<i class="ion-plus-round" ></i>
</a>
and this is my state definition:
$...
0
votes
0answers
12 views
Angular 1.5 component templateUrl not working
I have just started using Angular 1.5 components and have the following snippet of code
angular.module('vizzle').component('teacher', {
bindings: {},
/* @ngInject */
templateUrl: '/app/...
0
votes
0answers
4 views
Angular with wordpress jwt auth
I'm trying to make wordpress as a backend to my angularjs app, so I'm using the plugin rest-api with the jwt-auth
so when trying to login I get the following error
XMLHttpRequest cannot load http://...
0
votes
0answers
11 views
Not a valid number error from Angular using .NET Core Web API2
I am tearing my hair out over this one. I'm getting the following error in the console from Angular:
The specified value "{{vm.data.tax.amount}}" is not a valid number. The value must match to the ...
0
votes
2answers
23 views
How do I set angular variable to value of query string?
My URL contains a query string, for example "www.website.php?feature1=true&feature2=false".
When my page loads, I want angular variables set to the value of the query string variables like this:
...