Tagged Questions
0
votes
0answers
6 views
Angular CLI bundling issue
I have started an Angular2 project using Angular-cli, everything is in working in order when I run ng-serve.
My problem is when view source in the browser I can see that it injects three bundles ...
0
votes
2answers
16 views
Show placeholder image until actual image is loaded inside ng-repeat angularjs
I want to show a placeholder image until the actual image is loaded. I have used ng-image-appear plugin .Placeholder image is not showing for img elements inside ng-repeat but it is working for a ...
0
votes
0answers
11 views
How to pass ArrayList object values from jsp to action
Here I want to pass multiple values of an object to server along with
user id.
here I am storing data like pagename its read write update and delete status for multiple pages and i am accessing it ...
0
votes
0answers
8 views
Recompiling element with ngForm in it - makes ngForm undefined
I have an element, say <div main-form></div>
my mainForm directive recompiles itself sometimes to include html that has an ng-form in it. The problem is - that when I recompile it, the vm....
1
vote
1answer
27 views
Update the array as we edit the table column value
I am new to angularjs. I have a table in my html file which is like
<table class="table table-striped table-bordered report-table" fixed-header>
<thead class="text-center ...
0
votes
7answers
23 views
how to change classes of html elements obtained from ng-click()
I have an html element as :
<i ng-click="run()"></i>
and in my controller:
$scope.run() = function($event) {
var el = $event.currentTarget;
}
now how can i want to add some classes ...
0
votes
0answers
21 views
having a single controller for all the custom filter in angular ui grid
I am using custom filter for 5 columns in my ui grid ( angular ui-grid ), link shown below:
http://ui-grid.info/docs/#/tutorial/306_custom_filters
To create a custom filter, a custom modal is ...
0
votes
0answers
10 views
I can't get Scripts minified Grunt/Yeomann/Usemin
I cant minify my scripts somehow. Actually its very easy, in the beginning my structure like this and it was working
So. in my old design, old_scripts path was scripts and that was mutual file for ...
0
votes
1answer
16 views
Error: [$compile:nonassign] Expression 'undefined' in attribute [ATTRIBUTENAME] used with directive '[DIRECTIVENAME]' is non-assignable?
When I'm trying to transform date inside the directive's body I get error:
Error: [$compile:nonassign] Expression 'undefined' in attribute
[ATTRIBUTENAME] used with directive '[DIRECTIVENAME]' is
...
0
votes
1answer
15 views
How to configure Angular $resourceProvider for get method
I am using $resource in Angular js. I want to configure $resource using $resourceProvider in such a way that I can handle the server response.
For Example
I am doing a get request for user profile ...
0
votes
0answers
16 views
Error: [$injector:unpr] Unknown provider: $stateProvider reCaptcha
Why not recognize my stateProvider?? I work on Jhipster framework and i try implement the google's captcha
Uncaught Error: [$injector:modulerr] Failed to instantiate module tApp due to:
Error: [$...
0
votes
0answers
40 views
Not able to route in angular js
creating a webapp in which we have to pass one value to another but some how i am able to route one page to another . Here my code kindly check . want to pass value like query string and fetch data ...
0
votes
1answer
25 views
populate text fields in angular js based on datalist value
I want to populate text box fields based on data list count. If count is 3 , i have to populate 3 textbooks.
<datalist id="testList">
<option ng-repeat="des in DesList" value=" {{des.id}...
1
vote
1answer
17 views
How to perform a click event on a specific location on the canvas using protractor
I am stuck on this issue for a long time and I don't know how to go about it.
I am trying to autoomate a map application which has locations and places on it. When you click on the particular ...
0
votes
0answers
16 views
bypassSecurityTrustHtml and bypassSecurityTrustScript in Angular2 with JavaScript
I am trying to execute javascript function inside my Angular2 file via component. But I can't get this working.
This is how my ts file looks like.
import { Component, OnInit, Input } from '@angular/...
0
votes
2answers
29 views
how to pass data from one function to another in component.ts , angular2
hi am passing some values on button click "data.someid" i want to get this "data.someid" in another button click
html
---
<button (click)="click1(data.someid)"></button>
<button (...
0
votes
5answers
43 views
Ng-repeat array in array
I'm new to angular js, was looking through the docs in angular doc. I tried this way of doing, but no data was shown. Am I doing something wrong?
My array:
$scope.newArray = [{
...
0
votes
0answers
18 views
Highlight and auto_focus a word from a html file present in text-angular
I am new to angularjs. I am using a text-angular directive to show a html file .So,I have an array of words from the html file which I want to highlight in that file.Also, I have a next click on which ...
0
votes
0answers
25 views
Error: [$injector:unpr] in sessionStorage
I am trying to store values from a form using sessionStorage. But it is throwing error,
Error: [$injector:unpr] http://errors.angularjs.org/1.2.25/$injector/unpr?p0=%24sessionStorageProvider%20%3C-%...
0
votes
0answers
17 views
Angular $viewValue doesn't reflect in textbox on change event
I am trying to implement an INR (Indian Rupee) to USD (US Dollar) currency converter. The view should always display the value in INR. But the model should hold the value in USD. For that, I have ...
0
votes
0answers
21 views
400 Bad Request for $http post method
While using this code I got 400 Bad request rest_missing_callback_params
$scope.signUp = function () {
var data = {
email: $scope.email,
password: $...
0
votes
3answers
33 views
Filter table column angular js based on drop down
<form class="col2">
<label for="filter-online">
Filter by Online
</label>
<div class="select">
<select id="filter-online" ng-...
0
votes
1answer
23 views
How would i parse the json data according to the particular property entered in JSON file using angularjs($http.get)?
I have my JSON file as follows
{
"colorsArray":[{
"colorName":"red",
"hexValue":"#f00"
},
{
"colorName":"green",
"hexValue":"#0f0"
},
{
"colorName":"blue",
"...
0
votes
3answers
33 views
Partial Layout in Angular JS with new latest routes
/// <reference path="Scripts/angular.js" />
var myApp = angular.module("myModule", ["ngRoute"])
.config(function ($routeProvider) {
$routeProvider
...
0
votes
1answer
19 views
Angular 2 : EXCEPTION: Error in app.component.html:1:108 caused by: too much recursion
I have downloaded the Angular 2 quickstart and it worked fine after all of the setup. I setup an express server and connected to that and the app continued to work fine. I made one change to use ...
0
votes
1answer
22 views
Angular - caching data with base64 images
Suppose I have an app that lists restaurants in a given city. As you can imagine there may be quite a few listings making up a sizable amount of data, and thats without any images.
Now suppose I ...
-2
votes
0answers
10 views
jQuery event .on(“input”) running on IE browser refesh in Angular custom component
I have this form:
<form id="formSample" name="formSample" novalidate ng-form="ctrl.submit()">
<div class="wrapper">
<p>
<div class="col-sm-4">...
1
vote
1answer
23 views
AngularJS: ng-options with filter and ng-change
I have a select with a filter to format the display text and I need to pass the selected value to the controller, but I want to pass the "id" of selected item:
<select
ng-model="...
0
votes
0answers
12 views
Sticky state doesn't work when applied to a state with params
sticky state doesn't seem to work when it has parameters.
Example:
$stateProvider
.state('store', {
url: '/store',
abstract: true,
onEnter: function () {
...
0
votes
1answer
31 views
AngularJS - Dynamic forms inside arrays
So, I have here the SSCCE. Essentially, I have a dynamic array of people like so:
$scope.users = [
{
name: 'James',
data: []
},
{
name: 'Bob',
data: []
},
...
-2
votes
1answer
34 views
AngularJS: Element not found via getElementById
I use a function of a third party JavaScript application which I include and call in one of my AngularJS factories. One parameter of this function is the id of a DOM element because the function ...
3
votes
1answer
20 views
Error: $injector:modulerr ASP.Net Core
I'm trying to get angular working in my dotnet webapi project. I've installed angular and angular-ui-router through npm and all scripts added to my default.html page with development and stage/...
0
votes
0answers
19 views
SVG animation not working with angular routing
I am using angularjs 1.2.25 and using svg animation on home page it is working fine on home page but when i switch from other menu tabs like from about us to home page again svg animation not working....
-1
votes
0answers
19 views
How do I implement a search based upon multiple criteria in angularjs? [on hold]
I already have a filter working using angularjs for my application. Upon entering the text the data is filtered. But this is irrespective of the object's key parameter. This is based upon the value. I ...
0
votes
1answer
15 views
Issue with installing angularjs version of ng-infinite scroll using npm pacakge manager
I'm using npm package manager to install dependencies in my application. I've listed all the required dependencies in package.json file. I've just added a new dependency for ng-infinite-scroll and I ...
1
vote
1answer
21 views
Can I use ng-repeat and have isolated scope with angular component?
So I have a ng repeat block that passes an object to a angular component. That looks like this
<div ng-repeat="assessor in $ctrl.dedupeDetail.matches">
<assessordedupequickcard assessor="...
-1
votes
1answer
24 views
Create a 2 level json Array using Angular Js
I need to contruct a Json with 2 parts first of all I need to obtain a name of companies from an ApiRest it returns a Json with the name of the companies and a parameter that contains an address for ...
1
vote
2answers
27 views
Update $state variable in 1 module from another
https://plnkr.co/edit/PWuKuVw9Dn9UJy6l8hZv?p=preview
I have 3 modules, routerApp, tickers and tags. Basically trying to rebuild my app out of smaller mini-apps.
The routerApp template contains the 2 ...
0
votes
0answers
30 views
Trying to return a single object from an array of objects angularjs
I make a get request which returns an array of objects. I want loop through the array and return one single object to the view based on the name property of that object. I have tried to use ng-repeat ...
0
votes
0answers
31 views
Returning object if not undefined, otherwise promise [on hold]
In my angular factory I'm trying to return either:
the promise from an $http request
An object if that object is not undefined
The http request is performed and the promise is returned in the ...
0
votes
0answers
22 views
Copy data from one tab in browser and paster into another
I need to copy text from one tab and paste to another on click. They are in the same browser but domains are different so they don't share same origins.
Possible solutions I've considered: setup a ...
0
votes
1answer
22 views
render HTML from mySQL to display on a page Angular and JavaScript
I am using Angular for front end, and node for back end. I am getting the data from a mySql db, where I have manually stored it in text format but with HTML tags on it i.e:
<ul>
<li>...
0
votes
0answers
19 views
Angular 1 uiRouter how to get full path with url query?
I'm trying to get the url path with it's current url queries using uiRouter.
What I want to achieve is something similar to:
window.location.pathname + window.location.search
How would one achieve ...
0
votes
0answers
29 views
Angular CLI karma tests not running
I have an Angular2 project, created with Angular Cli 1.0.0.rc2
When I run ng test, the project builds (without errors!), karma launches chrome and displays
"Karma v1.4.1 - connected" and
"Chrome ...
0
votes
0answers
13 views
JavaScript node API request reset
I am trying to create a web app that passes an application name into an API call to retrieve data that is associated with that application. I have gotten it to work on the first attempt. However, when ...
1
vote
1answer
18 views
How to access Parse object properties in AngularJS?
I'm building out an AngularJS app that uses data from a parse-server backend. I retrieve any data through services, which can be called from my controllers. But due to how Parse objects work all ...
2
votes
3answers
20 views
Target only 1 button in Angular
Im getting the values in a div from the DB and displaying using ng-repeat:
<div ng-controller = "myTest">
<div ng-repeat="name in names">
<h4>{{name.name}}</h4>
...
0
votes
1answer
22 views
Pass/bind data from ng-repeat to a child component in Angular JS
I am learning Angular and I am trying to figure out how to pass/bind data to a child component. I have a main template that has the following:
<div class="container" ng-repeat="data in treeCtrl....
0
votes
0answers
11 views
Angular service data object and primitive values memory location and $digest
I have a service that holds a data dictionary which has a key activeBill that can either have an object as value or be null.
(function() {
'use strict';
angular
.module('shishaModule')
....
1
vote
2answers
28 views
Incorrect date countdown
I'm using the Countdownjs to insert a count in my project but it is returning the wrong day.
I'm using AngularJS, here's the directive I created for the count:
.directive('tempoPercorrido', function($...