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
9 views
Unit test on Angularjs with Jasmine and Webpack, error Unknown provider
I would like to ask how to solve this error which won't let me write any test.
This is the Angularjs factory (service.es6) I would like to test:
import Rx from 'rxjs/Rx'
var TheMiddleModule = angular....
-1
votes
0answers
14 views
javascript not working on the page loaded inside the modal popup
I have a VF page in which I am using Angular Js to load a page inside a modalPopup. now when the 2nd VF page is loaded, there is some Javascript which is not getting executed inside the ModalPopup.
...
0
votes
0answers
5 views
Kendo UI grouping with translation bug
when i active grouping option in kendo grid with translation,i notice the groupement display a false result.
Link: http://dojo.telerik.com/opeMu/16
var app = angular.module("KendoDemos", [ "kendo....
1
vote
1answer
20 views
Cannot read property 'comments' of undefined error in angularjs
I asked this question before too. Maybe someone can caught the error here.
`.controller('DishDetailController', ['$scope', function($scope) {
var dish={
name:'...
0
votes
1answer
12 views
AngularJS 1.x.x. List all active controllers into browser's console
Is there a way to list all active controller names into console? Need this for external E2E testing, to check if controller has loaded without waiting for DOM to fully render.
0
votes
2answers
13 views
disable checkboxes in angular if checked?
I have an array of objects represented as checkboxes, I want to disable the checkbox if its checked (it's value is set from the database)
<md-input-container ng-repeat="tab in allTabs">
...
-2
votes
0answers
21 views
How to calculate sum of all ng-repeat value
var app = angular.module("myApp", []);
app.controller("myCtrl", function($scope) {
$scope.items = [
{name: 'xxx', amount: 13, years: 2, interest: 2},
{name: 'yyy', ...
0
votes
0answers
16 views
Best practice passing to child html tag with button click binding angular 2
So i have the following structure, for the example i just simplify it, there is few rules that i cannot change due to the bootstrap template that i'm using. I have a parent component that using a ...
0
votes
0answers
10 views
Getting Json Response Object AngularJS
I'm trying to create a simple login form with angular and PHP (as the API), The username,password values post successfully but I am unable to get the response variables (code and message) in order to ...
0
votes
1answer
9 views
how to call static template from angular js with flask?
Hi I am calling in angular.js to a template saved in templates folder in flask but not works, how can I get static files in js from flask?
var app = angular.module('app', ['ngTouch', 'ui.grid', 'ui....
0
votes
0answers
6 views
Invalid provider for the NgModule 'DynamicTestModule' when testing a service in Angular 2
I have the following service:
import { Injectable } from '@angular/core';
import { MenuItem } from './../classes/menu-item';
import { ITEMS } from './../static-data/items-list';
@Injectable()
...
0
votes
0answers
21 views
I want make search between two dates & today &last7days data search in Angularjs bootstrap
Want to develop search with Angularjs bootstrap. I am using $watch. Is it possible to get two input values from $watch NewValue. $watch is working fine for word search with NewValue.but want to ...
0
votes
0answers
11 views
How to do performance testing of Angular JS Web Console
I want to do performance, load and stress testing of my Angular JS web console in Jmeter.
Web Console is deployed on server.
Angular Js Web Console is basically performing CRUD operations e.g ...
0
votes
1answer
10 views
Prevent nested ui-sref to be triggered when there is a parent ng-click
Pratically the inverse of Prevent calling parent when nested ui-sref
I want to click on a nested element which has a ui-sref, but instead only the parent ng-click should be triggered (conditionally), ...
0
votes
0answers
28 views
Angular Nested array filtering whole object
I have the following code on the controller.js and gallery.html
.controller ('VideoGalleryController', ['$scope', 'videogalleryFactory', function($scope, videogalleryFactory){
//...
0
votes
0answers
6 views
nvd3 eventclick option not getting exact point
I am using nvd3 line chart. In that chart i am unable get the exact clicked point by user. I am using useInteractiveGuideline:true for tooltip. When i mouseover in single day it shows all the points ...
0
votes
0answers
11 views
AngularJS confirmation modal custom action on No/Cancel button
https://weblogs.asp.net/dwahlin/building-an-angularjs-modal-service
I am using the above blog post as a guide to build the confirmation modal service in my Angular app. If I may ask, does anyone know ...
-1
votes
1answer
19 views
AngularJS 2: Changing the value of a variable outside of the class that the variable belongs to
I have a very simple question which I don't really know how to Google... I've 2 components here, the first one is playlist.component.ts
import {Component} from 'angular2/core';
import {Video} from '....
0
votes
2answers
19 views
How do I change my button color and text in Ionic Framework?
So far I have the color change working but I need the text too.
HTML:
<div ng-controller="ButtonCtrl" class="padding">
<button class="button button-block" ng-click="button.clicked=!button....
-2
votes
0answers
8 views
Ionic Datatables- trying to use angular data tables in ionic
Error imagehave been trying to use angular datatables in ionic app but it's showing error. link is this one http://l-lin.github.io/angular-datatables/archives/#/welcome
-1
votes
1answer
22 views
Angular Js Ng-options with Json Value
I am trying to iterate a respond gotten from my restful Api into a select and option input and then use that to select another option
Here is the value I am getting from my API how will I present it ...
4
votes
1answer
31 views
HTML link with data-method isn't working
Im trying to create a link in a view of AngularJS application just to send a data-method DELETE.
My route:
app.delete('/logout', function(req, res) {
req.session = null
res.status(200)
res....
0
votes
1answer
21 views
How to isolate javascript and css of a popup from the parent page?
Problem: when I open a modal popup page containing javascript and css, both reflects on the parent page, making a mess. I use angularjs and open the modal like this:
var modalInstance = $modal.open({
...
0
votes
0answers
36 views
Error when doing npm install [Angular 2]
Hello all I am getting the following error when doing npm install I have reinstalled my nodejs also but that is not working, I am not behind the firewall
npm WARN optional SKIPPING OPTIONAL ...
0
votes
1answer
16 views
Return value from angularjs factory
I try to set up this example https://github.com/AngularClass/angular-websocket#usage
Here is my code
App.factory('MyData', function($websocket, $q) {
var dataStream = $websocket('wss://url');
var ...
0
votes
1answer
36 views
How to cache variable inside ng-repeat?
Let's say I have a long list of items.
this.items = [{id: 1, name: 'one'}, {id: 2, name: 'two'}, ...]; // 2000 items
And I want to display them without heavy-loading browser.
My template:
<div ...
0
votes
0answers
21 views
text is cutting after click on “read more” angularjs
Here is my code:
<div class="col-sm-12 cartline">
<div class="align-justify" hm-read-more hm-text="{{job.description}}" hm-limit="{{hm_limit/2}}" hm-more-text="{{hm_moreText}}" hm-...
0
votes
3answers
26 views
Angular.js how to move the service in a separate .js file
Using the examples from their documentation I did this .html file:
<html>
<head>
<title>Angular JS Services</title>
<script src = "https://ajax.googleapis.com/ajax/...
0
votes
1answer
50 views
How to hide a link by using Id's?
In my application I'm hiding some links by using Ids. While loading pages a DB call will go and pick all Ids. Ids are nothing but Ids in the below sample code.
<ul id="menu-content"> ...
1
vote
0answers
10 views
Populating data from referenced models in different modules in MEAN.JS
I am absolutely new to the MEAN stack, and I am using the MEAN.js(ver 0.4.2) generator for my project.
I am using the default users module and created a new module 'Topics' using the module ...
0
votes
0answers
16 views
How to open two independent datepickers in angularjs
I am trying to open 2 independant datepicker's simultaneously using angularjs. Currently, I am able to open 1 calendar on click of input field.
I tried so many things but didn't get what I want. ...
0
votes
0answers
6 views
how to do a dinamically expandableRowTemplate in grid UI Angular?
and I want a dinamicallyRowTemplate. I tried with something like this, but not works, any idea?
expandableRowTemplate: 'expandableRowTemplate.html',
onRegisterApi: function (gridApi) {
...
5
votes
3answers
60 views
Make checkboxes required AngularJS
I have a form where users have to answer questions through checkboxes. There are quite few checkboxes and I'm using AngularJS in the form to validate it. A basic validation is that all the required ...
0
votes
0answers
8 views
Adding a custom directive to ng-grid
Can i add a custom directive to the input cell of the ng-grid..Can someone help me , i searched it but was unable to find Thanks for any help
Here is reference of ng-grid
https://angular-ui.github....
0
votes
0answers
11 views
Is translation good to fetch from Server side or Angular Js is fine?
I am using Laravel Blade and there are two languages to be used. I am thinking to load the translation in blade like below.
<script>
window.LoginMessages = {!! json_encode([
'...
1
vote
3answers
27 views
Angular ngRoute not working properly
I'm working on a Angular route example but for some reason it's not working.
I've tried many pages and many things but doesn't seem to help.
Here's an
<!DOCTYPE html>
<html>
<head&...
0
votes
2answers
39 views
How to stop $watch when change the object vlaue on second time
How to stop $watch while changing the object
Here is a $watch function
$scope.$watch($scope.OneTime,function(old,new)
{
// my function
});
The above $watch function will be fire whenever my (...
0
votes
0answers
23 views
AngularJS translate not working
I have a problem. I found AngularJS translate example on internet and tried to apply on my MVC app. And it doesnt work and I still dont get why. I tried simple app like HelloWorld and it works, but If ...
0
votes
1answer
7 views
How to call $translateChangeSuccess function inside $translateReady?
Sometimes while loading the page, translateChangeSuccess is not getting fired and its throwing error.
So, I need to call the $translateChangeSuccess whenever the $translate is ready. How to do it in a ...
0
votes
0answers
6 views
How to test cookie in Authentication Service in Jasmine?
I want to test in my AuthenticationService. My AuthenticationService puts the username and password in base64 string to a cookie.
if i execute the test, karma says: cannot read property encode of ...
0
votes
1answer
11 views
Mongoose Arguments must be aggregate pipeline operators
We are trying to build a function in NodeJS that allows us to use that function with find or aggregrate parameters and returns the result.
The find option works fine, also the limit and offset does. ...
0
votes
1answer
22 views
Angular JS (Ionic) SQLite select img path and display it
I have this app where I take an image , save it locally to the filesytem then display it, I stored images path in sqlite database, it inserted sucessfuly , now I need to select and display them , I ...
0
votes
0answers
13 views
Firebase authenticate error
I'm trying to make my first Ionic app with Firebase auth
When I try to authenticate I get this error:
Q {code: "auth/argument-error", message: "signInWithPopup failed: First argument "authProvider"...
0
votes
1answer
25 views
Using ng-click and scope functions in generated html (angularJs)
I have a code like this:
$scope.printOutRowModel = function(){
console.log("blah");
}
$scope.createTable = function(name)
{
var element = angular.element(document.querySelector('....
0
votes
0answers
16 views
Angulars : silently print PDF from client side
I am developping an Angularjs Spring MVC application.
I am displaying a PDF in my browser (Chrome) like this :
window.open(location.pathname+'api/myReport/'+$scope.month.id,'_blank');
The PDF ...
0
votes
0answers
10 views
Lokijs FileSystemAdapter - data lost completely on insert to DB
I am using LokiJS as offline db for my hybrid mobile application. In my first implementation I was storing the data in browser's localstorage, as it had limited size for storing data I had to move to ...
-1
votes
0answers
4 views
want to use template engine syntax in script
I want to access each element of shows collection individually for further calculations but it is not working.I am able to display those element in HTML using course video but unable to fetch them ...
-1
votes
0answers
26 views
HTML form POST is not redirecting to posted URL on IE or Edge
I need to post a HTML form with few input elements to a PayUMoney server. I created a form element from javascript and added all input fields inside the form.
When I post it redirect me to the posted ...
0
votes
0answers
13 views
AngularJS: Use function call for attribute value which is not an angular attribute
I have created a webpage with custom directives, in my main controller there is a function called isReadOnly(arg) which takes one argument and returns true or false. I am able to call this function ...
-1
votes
1answer
20 views
I am a beginner in angularjs, what is wrong in following code there is no error but the result is not show in view
//anular model
var app = angular.module('myapp', []);
// this is a service to get data
app.service('EmployeeService', function ($http) {
this.getEmployees = function () {
...