Tagged Questions
AngularJS 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 apps are also frequently known as Single-Page Applications.
0
votes
0answers
6 views
Display to table fetched JSON values in a different format
I currently have a table which displays data like so:
http://snag.gy/fyO48.jpg
I have a service which fetches the data from an SQL server and encodes it into a json. My problem is the json is ...
0
votes
0answers
6 views
load Data before go to a View
I have an app with different roles like : admin, user.
So now I want to fetch all the data before going to a specific view
this.rollesService.getRollesByID(this.jwt.Id).subscribe(
data => ...
0
votes
0answers
6 views
angularjs: injecting async service into directive with $resource
I'm very much trying to get my head around angularJS and directives still.
I have an existing REST service that outputs JSON data as follows (formatted for readability):
{"ApplicationType":
...
0
votes
0answers
3 views
can not access to methods defined in Controller of a custom Directive in template directive
I am working on a Simple Gmail like Project According to angularjs-tutorial-build-a-gmail-clone tutorial.
I want to write that step by step from scratch. But in Factories and Directives Working ...
0
votes
2answers
8 views
Angular2 Exception: No provider for Service
I'm unable to instantiate my application when I have the component which is nested under the root component providing a component which it uses in it's constructor.
import {Component, Injectable} ...
0
votes
0answers
16 views
angularjs - update part of UI
I have a timer running every 100ms and can't afford to do digest cycles on the whole app (becomes too slow on mobile devices and probably not a good idea anyway since nothing else changes but the ...
0
votes
0answers
12 views
npm install error, Please help me understand what is going on here
C:\Users\harmandeep.singh\angular-phonecat\node_modules\bufferutil\build\buffer
util.vcxproj(20,3):
error MSB4019: The imported project
"C:\Microsoft.Cpp.Default.props"
was not found. Confirm that ...
2
votes
0answers
13 views
Want to add comment at respective places
Below is the structure of threaded comments in angular.js form.
<form>
<ul class="unstyled">
<!-- ng-class="{ '{{childcond}}': $index == selectedIndex }" -->
<li ...
0
votes
2answers
15 views
AngularJS regular lookup
I have a question I tried googling but couldn't get what I was expecting. Hope people around here will make me clear.
Am working on AngularJS from last few months and now I have a situation where ...
0
votes
0answers
5 views
Change Values for an angularJS child Controller property in app.run
I having a angular module app in the name of the ng-app DemoProject.
Now I'm creating app.run controller and one child controller
My AngularJS Script
var app = angular.module("DemoProject", ...
0
votes
0answers
19 views
target nested json in controller
I have a simple app where I am outputting json like so:
[
{
"id": 1,
"title": "test 1",
"venue": "test 1 House",
"day": "24",
"month": "March",
"year": "2016",
"items": ...
0
votes
0answers
30 views
Angularjs: load data in service then load it to controllers
I've checked several solutions on the web but I don't quite understand how to stop the controllers from loading. So, I've created a plunkr to highlight what I want to do.
Basically: I want to load ...
1
vote
2answers
20 views
How to show and hide a div with a checkbox element in Angular2?
I've got a checkbox and what I'm trying to achieve is to hide the div when the checkbox is checked and show when it is unchecked in Angular 2.0 beta.
I know how to do this in angular 1.2 with this ...
0
votes
0answers
6 views
Warning Unresponsive script Angular JS with Django Rest Auth sample app
I am trying to setup Django Rest Auth using an Angular JS front end so I am using this application as my base.
I followed the instructions on the page to set things up. However, when I go my ...
0
votes
0answers
6 views
Failed to load template: ui-grid/ui-grid
I am trying to use angular-ui-grid,
bower installed the package, injected module.
HTML & Data:
<div id="grid1" ui-grid="{ data: myData }" class="grid"></div>
$scope.myData = [
...
3
votes
0answers
9 views
How to store Oauth response in postgresql?
I am using loopback framework(Node.js) with angular js(front end) and postgresql (DB)for my application,In my application i used third party login "passport-google-oauth".
After the google auth, call ...
0
votes
0answers
7 views
Server-side triggered toast in Meteor
I have a case where few users are on a page (ui-router state) in a Meteor app using angular-meteor. I want to make a toast appear for all the users each time a user performs an action, which is an ...
0
votes
0answers
5 views
AngularJS: Display blob (application/octet-stream) in an angular app
It is possible to view/download files like pdf,excel,word,image as per the below post .
AngularJS: Display blob (.pdf) in an angular app
But it is not working for Microsoft mails(.msg format).
...
0
votes
0answers
11 views
Ionic for ios - promise never resolve
I am creating app using Ionic and the app run fine on Android. On IOS, however, it seems to stuck on certain code that will return a promise:
angular.run(function(...) {
alert('start'); // this ...
0
votes
1answer
9 views
Angular parsing directive element parameter as json string has some delay
Hello here is an example which describe that problem:
http://jsbin.com/bewelureve/edit?html,js,console,output
As can be seen, if we put json as income parameter, looks like it has some delay.
0
votes
0answers
13 views
Page is not getting refreshed which was implemented using C# and angularjs for html5Mode(true)
This is the routing page:
var testModule= angular.module('latModule', ['ngRoute', 'ui.router', 'ui.bootstrap', 'ngResource']);
testModule.config(["$routeProvider", "$locationProvider",
function ...
1
vote
1answer
33 views
How to calculate row total when using ng-repeat?
I'm trying to create a tracker using AngularJS and I'm having a bit of trouble with my logic when it comes to ng-repeat.
Here's what my table looks like to help explain what I'm trying to do:
So ...
0
votes
0answers
5 views
How to change Angular bootstrap UI popover trigger event in different-2 device?
Hi This is my plunker link: In this I have created a popover which
will
trigger on mouse hover. For the desktop purpose it is good.
My question is how can I make text "Help" as a ...
0
votes
0answers
11 views
rails ng-file-upload angular inside ng-repeat
I have form that using nested form. Inside of nested form there are multiple file upload button. I have read many articles but there is not related with my case.
I use ng-file-upload to upload files ...
0
votes
2answers
16 views
Get Same response in node as coming from angular
I am developin app in angularjs and nodejs. I want to upload the image using angular and node. Image is sern dusing multipart/form-data. when i send data post request looks like:
...
0
votes
1answer
13 views
is it possible to have multiple views inside multiple views in angular ui-view
Is it possible to have multiple named views inside another named view like this
<div ui-view="1">
<div ui-view="a"></div>
<div ui-view="b"></div>
<div ...
0
votes
0answers
12 views
How to view a custom error page when controller or method inside controller is missing
I wish to view a custom error page whenever there is an invalid controller name in url or invalid method name inside controller .Invalid simple means which dont exist in inside controller or may be ...
0
votes
0answers
11 views
$scope.modalInstance.close(); what are the parametres i can pass?
what are the parameters i can pass? and how the parameters will affect the
behaviour of the model.
$scope.modalInstance.close();
0
votes
0answers
17 views
The newBookmark created is not displaying (Angularjs)
<html ng-app="MyApp">
<head>
<title>Angularjs</title>
</head>
<body ng-controller="MyController">
<div ng-repeat="category in categories" >
<a href="#" ...
0
votes
3answers
33 views
AngularJS: Dynamically binding Click in directive gets fired multiple times
I'm trying to add fields dynamically and I'm binding click event in the directive's link function. But it seems to be firing several times as I add more fields. See the example below -
var clicks ...
0
votes
1answer
14 views
Not getting value of default selected checkbox
I am trying to get the of checkbox selected and store its result in an array . when the checkboxes are selected by default its not getting its value but after toggling if if a particular checkbox is ...
0
votes
3answers
21 views
$http.get not executing functions on success
I am doing my first Angular project (ionic framework) where i have to get some data from database and on success I havet to
store it in a variable
navigate to a page where this variable is used.
...
0
votes
0answers
12 views
Angularjs/ui-select close on every selection or not
In windows, if you have a form option element you can use the control key for stick open the selection list of options while you are selecting
If you do not press the control key , the list of option ...
1
vote
0answers
16 views
Why my CORS application doesn't recognize my session?
I've been trying to setup CORS in my Angular client-side and Laravel server-side app, in order to debug it. I've done it before without problems, but for an extraneous reason this is not working now, ...
0
votes
0answers
20 views
How to get or load json data from Postgresql database in my view page using AngularJS?
I have one query that, I have couple of json objects(contains id and description) in Postgresql database. My requirement is: I need to display each and every json data(id and description) from ...
0
votes
1answer
8 views
Create a non abstract parent with a URL
I have a simple form that can be used to initiate a forecast request. I created this as a parent state requests (Initiate Forecast).
Desired behavior
When a request is submitted, that immediate ...
0
votes
2answers
31 views
How to change Selected Tab inside controller in angularjs?
Here I created Sample For Tabs.
What I exactly need is inside sample controller manually I need to set selected tab based on config parameter. At load time I need to set manually the tab to be ...
0
votes
1answer
17 views
angular material dialog tabbed
I have two tabs on my dialog. How do I dynamically set which one is active depending on which button the user hits.
Here are my buttons:
<md-button ng-click="showTabDialog($event, 'login')" ...
0
votes
1answer
36 views
How to set active tab using angularJs while validating
Here i created two tabs,my problem is while click the submit button its validating first tab and its not automatically go to second tab how to do ? Thanks for you help in Advanced
...
0
votes
0answers
17 views
Directive failing after upgrading to version Angular 1.5
The following directive working perfectly fine in angular version 1.2.x
app.directive('checkUnique', ['$http', function($http) {
return {
require: 'ngModel',
link: function(scope, ...
0
votes
0answers
17 views
AngularJS modal dialog with ui.route not working
Please help me,
I would like to open a modal dialog from a button click action :
"Simulasi" button
The button was generated from "masterpegawai.alltalenta" state
This is the HTML :
<div>
...
0
votes
0answers
9 views
Embedding Angular 1.x app inside an angular 2.0 app
The question is on the same lines as this one, however the other way around.
I want to embed an Angular 1.x app inside an Angular 2 app. More specifically this app. I understand that there are ways ...
0
votes
3answers
36 views
Create subsets of an Array using Javascript & Angular JS
I'm trying to create subsets of an Array in a recurring manner. I've an Array in the form of [0,1,2,3,4,5,6]. I'd like to create subsets like [0,1,2], ...
0
votes
0answers
12 views
ionic build fails error 65
Building my ionic app fails since this weekend:
** BUILD FAILED **
The following build commands failed:
CompileC ...
0
votes
0answers
9 views
Anuglarjs File upload + change the filename
I am using the angularjs file upload and using the following package.
http://nervgh.github.io/pages/angular-file-upload/examples/simple/
Backend I am using loopback framework, The file upload & ...
0
votes
1answer
28 views
Unable to get the scope data to the html page using factory in angularjs
I'm able to send the same json data from home.js to content.js.But I'm unable to populate the content.js scope data into the html page
Can anyone please help me out regarding this issue ...
My ...
0
votes
1answer
7 views
Angular Materials: Can you disable the autocomplete suggestions for an input?
I'm just using simple input containers such as this
<md-input-container class="md-block" flex-gt-sm >
<label>Name</label>
<input md-maxlength="30" name="name" ...
0
votes
1answer
9 views
Equivilant of rails partials for angularjs
Is there an equivilant of rails partials for angular js.
Ex: in rails I have my application.html.erb and I can do <%= render 'layouts/_header and it will render that header for every page.
Does ...
0
votes
0answers
10 views
Footable Pagination is Not Work with Filter in Ng-Repeat
I Used Footable pagination for pagination in ng-repat data. when i used filter in ng-repeat then my pagination is not working.
If i have 10 records with 2 paging and i filter the data which is on 2 ...
0
votes
0answers
11 views
Data not binding to ionic view
this is my ionic view click here to see ionic view
and here is my controller click here to see controller data while debugging
Data is coming through service from api but not binding to view ...