Tagged Questions
Use for questions about AngularJS, the open-source JavaScript framework. Do NOT use this tag for Angular 2 or later versions; instead, use the "angular" tag.
0
votes
0answers
14 views
How can I nest directives dynamically
still learning Angular and I am working with routing.
My Task: I got an example project where I got to html structures which are shared by multiple sites. FOr Example: There is a route definition ...
-1
votes
0answers
6 views
Spring boot Maven multi module project for front end and back end
I am designing a new application for the first time where I will be using Spring Boot and AngularX. I have used maven to create two modules for backend and frontend separately. Both the modules will ...
1
vote
1answer
12 views
IONIC: unable to get records from two `ng-repeat`
I am new with ionic framework.Currently i am working on ionicsidemenu app. I want to show records according to date, having date as heading and respective date having multiple records.
For this ...
0
votes
0answers
32 views
displaying nested JSON with react js
i have object something like this
export const contact =
{
_id: "1",
first:"John",
name: {
first:"John",
last:"Doe"
},
phone:"555",
email:"[email protected]"
};
...
-1
votes
0answers
19 views
How to use authentication in angularjs
I am creating a small student application using angularjs. I have a login form and home.html pages. without login they cannot access home.html page. How to achieve it in angularjs.
In asp.4.0 i am ...
0
votes
0answers
30 views
How to return some value from $scope.$on to $scope.$emit
The commented part will lie under $scope.$on. I need to return options to the place where I have kept $scope.$emit. Please HELP!!!
if (gridConfig.Batch) {
gridOption.dataSource....
1
vote
3answers
36 views
How to make form disabled in AngularJS?
I am new to AngularJS. So, I have a form and buttons that I have created. But, for some reason, my form is not disabled. All I want to do is when the user comes to the page, I want the form to be ...
0
votes
0answers
11 views
Ngtable custom filter of $index via input box
<table ng-table="demo.tableParams" class="table table-condensed table-bordered table-striped">
<tr ng-repeat="row in $data">
<td data-title="'Name'" filter="{name: '...
1
vote
1answer
19 views
Typescript: data not getting assigned to class variable
I am using http call to get the data from back end. I can see the data coming back from backend as it gets logged into the browser console.
But the data is not getting assigned to the class variable. ...
-2
votes
0answers
9 views
Add-in component based SPA web application architecture
I’m looking for a bit of advice regarding the best way to architect an internal application. Let's take a quick look at the angular2-seed project so I can better explain: https://github.com/mgechev/...
1
vote
1answer
29 views
Hide element on documet.click in angularjs
I have a login form. Once logged in, the user name shows on page. If mouserover on the name, the logout link shows. If i click on document logout link need to be hide. I got through ng-mouseover. But ...
0
votes
1answer
18 views
How to check if any value in an array is present in another array in angular js?
I am writing a permission function in angular js factory method which checks user role. if user object have such role then result should be true else it should return false.
my user object is:
...
0
votes
1answer
11 views
How to use Angular js as view/template engine in Nodejs/Express
I've tried using EJS template engine but want to know is there any way to use angular js as an template engine for nodejs
1
vote
2answers
25 views
How to add the group by data in AngularJS?
I have an array of objects which consists of quantity and date as shown below
$scope.items = [
{
"date": "2017-05-18T00:00:00.000Z",
"quantity": 50,
"id": 5
},
{
"date": "2017-...
0
votes
1answer
11 views
Creating reports in Angular or Node? Generate HTML clientside or serverside?
I have to do 18 different long complex reports with a lot of data. The reports are for print and PDF so there is no user interaction.
At the moment I do it like this.
index.html only contains this:...
-1
votes
0answers
10 views
CSS is not loaded in pdf generation
$scope.printAlternativa = function() {
var printContents = angular.element('#empalternativaheaderpdf').html();
printContents = printContents + angular.element('.epmalternativafldspdf')...
1
vote
0answers
13 views
Year drop down value not getting in fire fox browser
Am using one library for date selection,it is working fine before applying the maximum year condition in both the browsers.
when applying the condition it is not working in firefox.
Here is the code :
...
1
vote
1answer
14 views
Change the order of directives based on values returned from server
Imagine I have three components: componentA,componentB,componentC, and these components are used in my main page, on page load I receive the order of these components like so:
{
"componentA": 3,
...
1
vote
1answer
21 views
Dynamically creating DOM, in angularjs
Please see the below code -
<!DOCTYPE html>
<html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<body ng-app="myApp" ng-...
0
votes
1answer
23 views
Php mysql group by sum issue
Got this code
HTML
<div class="ultventas_group" ng-repeat="mesa in mesas">
<div class="ultventas_group_item">MESA {{mesa.table_number}}</div>
<div class="...
1
vote
2answers
18 views
Access-Control-Allow-Origin' Issue on angularjs app
XMLHttpRequest cannot load domain.com/contact-form.php. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. ...
0
votes
0answers
26 views
date validator clears date field after validation check
I am new to angularjs and js. I am working on a date validation code frmo a date picker.
below is the code that does the validation. problem is, when we pick a date and try to update it clears the ...
0
votes
1answer
14 views
Grabbing value from nested json array with Angular
I'm having trouble accessing the artists array within the items array here to be able to render the name field:
I'm currently able to grab other values at the same level as the artists that are ...
0
votes
0answers
6 views
angular.js & prerender.io - How to allow client to dynamically generate og:meta tags?
My website is a single page application that pulls data from a MySQL database, which my client is able to update on their own with HTML forms with input fields. I'd like to be able to make it so that ...
0
votes
0answers
9 views
How to add uib-datepicker-popup?
I am trying to implement this tutorial in my code.
But it didn't happen like that.
I have all javascript files like angular-animate.js, ui-bootstrap-tpls-0.14.1.js, script.js.
But the problem is ...
0
votes
0answers
13 views
How to display Motion JPEG binary data stream with Angular/Ionic/JS?
I'm coding an app for a device, such device will receive a POST request, and send back a multipart/x-mixed-replace binary data stream. I must display such stream on one section of my app's home page.
...
0
votes
3answers
27 views
passing href link through angularjs ng-repeat
I have an array of messages
$scope.messsages = []
Upon clicking a button the content of a text area gets added into the array using ng-click method.This message is used to query the api. After which ...
0
votes
0answers
16 views
Angular 4 Karma Unit Testing, not detecting the tests
I am trying to introduce unit testing to my Angular 4 project. I am using Karma for it. I have done the configuration. It shows a connected screen. But it shows not tests! I have one test under src/...
0
votes
1answer
16 views
Storing value of selected result in list that can be exported to JSON
I have an angular app that allows you to search the Spotify API. The results are then listed, and the user can click on a + sign to add the selected result to a list on the right. I'm able to add an ...
0
votes
1answer
18 views
Issue with angularJS npm packages and dependencies
This is the error I get
angular.js:38 Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.6.4/$injector/modulerr?p0=myApp&p1=Error%3A%2…arJS%2Fangular-my-app%2Fnode_modules%...
1
vote
1answer
24 views
ng-disabled not working on Submit button in AngularJS 1.4.8
This is my first AngularJS contact form (new to AngularJS). I've read many posts about this problem and tried many solutions, but I can't get it. Seems simple enough but I'm stumped.
I want to ...
1
vote
2answers
20 views
Regex replace for preceding zero twice in string with different condition
I have string XY4PQ43 and I want regex replace should output XY04PQ0043 in JavaScript. For first number in a string I want zero prefix if its single digit to make it 2 digits and for second number in ...
1
vote
0answers
12 views
Prerender.io: “angular.js:14525 TypeError: Cannot set property 'seo' of undefined”
EDIT I seem to have solved my problem, as I'm not getting the error anymore.
I realized there was a lot of junk in this controller that I was no longer using, so I got rid of it, and also removed var ...
0
votes
0answers
8 views
How can I use ng-bind-html as an element?
For an Angular 1.2 project, I'd like to render a subset of <td>s inside of a table row using ng-bind-html in order to reduce the number of watchers. I cannot easily render all <td>s this ...
0
votes
0answers
15 views
How to work with hybrid webapp (MPA and SPA combined)
What are good practices about building a multiple page application using modern JS frameworks.
MPA
In multiple page application we have multiple templates using some “template syntax” to provide us ...
0
votes
0answers
7 views
Adding localization functionality to Angular 2
I have a localization component that I am using to translate different strings based on the locale. But when I try to use the following code in localization.component.ts it doesn't build, and when I ...
0
votes
1answer
15 views
File upload not working in AngularJS
Here's my code in my controller file that is suppose to grab the values of each input element (name, price, date, image) and push it into an array of objects...
$scope.addBook = function(name, price, ...
0
votes
1answer
22 views
Encryption using direct S3 upload and Node signing with ng-file-upload
I am using ng-file-upload to upload directly to S3 as seen in the example here:
Direct S3 upload and Node signing example
I've included 'x-amz-server-side-encryption': 'AES256' in my headers, and its ...
0
votes
1answer
22 views
Angular routing is not working properly?
I am trying to do routing in angular js and Server is running fine. But angular routing is not working properly, only main.html page is coming in ng-view, second.html is not coming. when clicked on ...
1
vote
2answers
14 views
Can't render JSON results in ng-repeat
I'm trying to loop through the nested JSON object returned from searching the Spotify REST API, but unable to render the results.
Within my controller:
function fetch() {
$http.get("https://api....
0
votes
0answers
10 views
I can't save an entity with ng-model angularjs
I'm trying to save a new entity in the database with angularjs and spring boot but I'm getting null values.
At first, I managed to do the job and it was working but when I've added the ...
0
votes
1answer
8 views
How to push object to the begin of an array in firebase2 Angular 4
I have built an blogging system which will push the new message to the end of the array. But want to push the newest message to the begin of an array. What is the way to do that? Unshift does not work ...
0
votes
1answer
11 views
angularjs:Failed to load resource: the server responded with a status of 400 (Bad Request)
I use angularjs in laravel5.4 ,I get this Error in my console I dont know why it happen because the source of prb like showing in the console caused by this link of image :
<img class="lazy" src="/...
-1
votes
0answers
13 views
Angular 2 view rendering with click event not working after this.ref.detectChanges
In subscriber function i use manuel change detection to rerender the view.
However, after having use this.ref.detectChanges() no event like "click" detect change and render view.
this....
0
votes
0answers
7 views
Angular.js Template Token '{' is unexpected when inlining function with ui-grid and daterangepicker
I'm trying to embed an angular-daterangepicker in angular-ui-grid filterHeaderTemplate. When I try to set the daterangepicker options to a function I get parser syntax errors. However, I'm able to set ...
0
votes
2answers
20 views
Angularjs dynamic looping to access dynamic values of array keys
I am generating following json data from my database where keys like sid and name is static but task1,task2,task3 .... are dynamic and they can be upto value n(where n=1,2,3......)
My data:
[
...
0
votes
0answers
7 views
AngularJS parent div directive wait for children div stacked directives to complete
I have a portion of html that is like this
<div my-custom-security-directive>
<button ng-if={{some constraints}} ng-click={{logic}}>cancel</button>
<button ng-disabled={{some ...
0
votes
0answers
14 views
JS stop current Audio object of playing load new one
I am creating a Podcast app using Ionic and AngularJS
I have two views:
List View (displaying all podcasts)
Detailed View (selected podcast)
Every time the user opens detailed view I grab the new ...
0
votes
1answer
15 views
SignalR connection closed but still works after angularjs scope destroy
I have a SignalR hub proxy in angularjs factory like this.
var app = angular.module('app');
app.factory("signalRHubProxy", ['$rootScope', "$timeout", function ($rootScope, $timeout) {
function ...
0
votes
0answers
12 views
uirouter loading template and not initializing controller
I'm having a couple issues. One is the MainController is not initializing any of its functions. And the other is Highcharts is not defined and I'm not sure how to include this.
main.js - ui router
'...