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 applications are also frequently known as single-page ...
0
votes
0answers
2 views
NG FILE UPLOAD and Sails JS
I'm uploading an image(s) for a certain item. I see the files are being stored and saved in the server just fine but yet it gives me a 404 error when the UI's supposed to show it, if I refresh in 2 ...
0
votes
0answers
10 views
Showing data from firebase in angularjs
I am having problems showing my data from controller to view in ionic angularjs
this is my code
alkitab.html
<ion-view view-title="Alkitab ">
<ion-content class='has-header' style="...
0
votes
0answers
8 views
Best practices on Angular2 form validation
I want to understand a little bit more about how NG2 RC6 handles validations for the fields, such as simple ones, and other more complex i.e.: field dependency, custom validations, etc.
I took a look ...
0
votes
1answer
7 views
Angular JS Error - timepicker.js injector:modulerr
This is my first AngularJS application so I am a nooby and keep trying to figure things out. But I am receiving an error in my chrome console:
Uncaught Error: [$injector:modulerr]
http://errors....
0
votes
1answer
18 views
how to display only the last four digits of an input field in angular material and angular js?
I want to make an md-input field where only the last 4 digits will be displayed, like this,"********1234". I'm new to angular material and angular js, my knowledge is limited only to md-input password ...
0
votes
0answers
15 views
i'm try to understand the concept how angular build service
so i study & learning level , and i understanding how to use with service and factory and providers ,
but my mind want to know only the concept , i dont expect to full functionality code:
but ...
0
votes
0answers
5 views
using name in angular 2 when setting up routes
I have an angular 2 app which was written in angular 2 beta 14. I am upgrading it to rc5. I am using the latest router , my package json contains "@angular/router": "3.0.0-rc.1"
Previously routes ...
0
votes
1answer
8 views
how to access outer scope inside the ng-repeat in a directive
I have a directive, inside a link function, i have a scope variable which I need to access inside 'ng-repeat'. But it is not picking up the value.
I have tried using $parent also went through couple ...
0
votes
0answers
8 views
Bootstrap modal with angular. Modal not closing with a specific data-ng-click function
I am trying to figure out why this particular Bootstrap confirmation modal is not working with my desired function. It does appear to work with a basic function bringing up an alert window but when I ...
0
votes
1answer
17 views
ng file upload - ng-src not working
I expect to show an image from a different source depending on an attribute, so I have the following:
<div ng-if="!file.$ngfBlobUrl">
<img style="width:50px; height: 50px" ng-src="{{...
0
votes
0answers
7 views
how can i import angularjs intot webpack bundle?
Why is jquery so simple, yet angular is being a pain?
In my webpack config, i have a simple resolve object setup:
resolve: {
extensions: ['', '.js'],
alias: {
'jquery': base + '/...
0
votes
0answers
3 views
best practice on putting typescript files and common service
Where can I include those files used on every components( saying typescripts and services ) so that I don't need to include on each components?
1
vote
1answer
11 views
Angular doesn't work with Express and Pug
I have no idea why, but I can't force Angular working here. Does anybody have ideas of why this may be?
I can't even make a simple input form with binded model. There are always just {{model}} and ...
-3
votes
0answers
25 views
ES6 arrow function and scope [duplicate]
Can someone explain what is happening here?
constructor() {
'ngInject';
this.jobs = null;
}
getJobs() {
this._http.get('url')
.then(function(response) {
this.jobs = response.data;
})...
1
vote
1answer
12 views
UI Bootstrap vs Angular material
Currently my angular (v1) app exensively uses UI Bootstrap directives.
I would like to switch to Angular Material, but I'm worried about its weight (just the minified css is about 400kB, with some js ...
0
votes
1answer
7 views
Ionic Framework, A way to “post” or “send” a location?
First, I apologize if my English is confusing to you this time. This question sounds a little weird, maybe, but let me explain.
I have a contact form for request refueling of product; it is for ...
0
votes
0answers
5 views
How to convert a n ASP.net based angular application to nodejs based?
All the visual studio example for creating angular application is based on asp.net. what's the good way to create an angular project based on nodejs? I want to use visual studio to debug on the code.
0
votes
0answers
6 views
Angular Firebase facebook authentication
I have added a single page app with no authentication. I am trying to add an authentication page now with Facebook and Google authentication, similar to this example: https://friendly-pix.com/, with ...
0
votes
0answers
8 views
How to use Django Models in Javascript with AngularJS
I'm working with django and AngularJS and I want to use my objects I create in Django in my javascript file.
in my models.py (django) I make my object:
from django.db import models
class Cashflow(...
0
votes
0answers
3 views
zurb foundation with angular not work
Please when try to use foundation 6 with angular
angular not work
when search i tried to add
angular
.module('app', ['ui.router'])
.config(config)
.run(run);
run.$inject = ['$...
0
votes
1answer
17 views
Angular 1.5.x Component Router Resolve (2)
How can I make a component route wait for a data befere to execute the controller and render the view. Similar to resolve of ngRoute and ui-router.
The documentation has this:
This only wait for ...
0
votes
0answers
10 views
angular1 typescript auth interceptor error
I am brand new to typescript. Trying to create auth interceptor to insert a token to every http call. Here is the interceptor class
export interface IAuthToken {
toekn:string,
isAuthorized:...
0
votes
0answers
12 views
How can I transclude variable number of repeating elements?
I'd like to create a directive like "grid" that functions like this:
<grid columns="1">
<grid-item>One of unlimited number...</grid-item>
<grid-item>Another one...</...
0
votes
0answers
15 views
angularjs/JS Update url querystring without refresh/load
I want update the url without page reloading or refresh. I've tried with below logic but no luck. Every time page is loading. Any help please?
var newurl = window.location.protocol + "//" + window....
1
vote
6answers
54 views
Best way to refactor complex if expression
I have just come on board to a big e-commerce project that has an angularJS front-end. I have been tasked with adding a lot of complex features to the checkout pages... which already have a lot of ...
-3
votes
2answers
41 views
How to create an associative multidimensional array object in JavaScript
I have a database table with 3 columns:
id | city | area |
--------------------------------------
2000 | Paris | City center |
2010 | Barcelona | Las ...
0
votes
2answers
12 views
Angular2 Notify Component Of Data Change
So I've been working my way through the Angular 2 tutorials and documentation. While playing around with it, I wanted to see if I can separate the form into its own component but still work the same ...
0
votes
1answer
28 views
in angular how to add nested object to ng-repeat
I'm a complete angular noob so please forgive the rudimentary question.
I have a post/comment structure for my model that looks like this:
[
{
"title": "awesome post",
"desc": "...
0
votes
0answers
9 views
How to use ng-include inside a table to recurse over tree structured object?
I have an object that I have to recurse over and represent it on a table.
It contains multiple information that is displayed on the tables' <th>.
I've been trying to use Anthony Chu's ...
-1
votes
1answer
10 views
angularjs Error: Access to restricted URI denied
I am using $http.get to consume a REST api from IBM bluemix. However when I run this code
var url = "https://username:[email protected]"
var count = '/api/v1/messages/count';
...
0
votes
1answer
27 views
Pass object to a new page
I have some json which is being ng-repeated:
{
"title": "image title",
"description": "Lorem ipsum dolor sit amet, per ea ferri platonem voluptaria, ea eum ubique ornatus interpretaris. Dolore ...
0
votes
1answer
8 views
AngularJS - How to set validity true after change the field
I've followed this answer to run custom server side validation for unique email constraint.
This is my submit function on controller:
function submit(form){
CompanyUser.save(vm.model)
....
0
votes
1answer
5 views
Run angular-seed project inside of visual studio?
I've created an Angularjs app by cloning the angular-seed.
git clone --depth=1 https://github.com/angular/angular-seed.git Web
cd Web
npm install
Then the app can be started by running npm start.
...
0
votes
1answer
40 views
Dynamic property on JavaScript object getting null
I'm trying to set the dynamic property on a javascript object using the ng-model. But I'm unable to create it as I always get null for that property. I have different ways to copy the value from the ...
0
votes
0answers
22 views
angular binding removing returns
It seems that binding removes returns from a string.
<div>{{obj.progress}}</div>
when I inspect the object in the console I get:
but in the HTML I see:
I would like the words to ...
0
votes
0answers
5 views
ngtable 1.0 pagination does not work with server-side data
I am trying to implement pagination on client side with the new ngtable to show serve-side data.
Here is my controller.js
ristoreApp.controller("fmCtrl",
['$scope', 'fmFactory', 'NgTableParams',...
0
votes
2answers
21 views
Changing ng-class based on conditional statement in controller
I am trying to update ng-class with a CSS class that has a specific background image. For example:
<button id="search" ng-class="{travel: travel }">Search</button>
for(var i = 0; i < ...
0
votes
0answers
6 views
How to setup the config function block in angularjs app to configure angular-growl-2 provider
I want to use the growl 2 library for angularjs, but I don't know how to configure the growl 2 provider for global configurations, this is what I have tried so far but I get this error saying that the ...
-3
votes
0answers
19 views
Can I return an entire angular application as a script?
I want to write an AngularJS form and return it. The delivery would be a script reference on a caller's HTML page.
i.e. https://domain.com/MyAngularScript.js
This would render the entire form and ...
0
votes
2answers
11 views
Impossible to “ng-disabled” a button submit, what should we know that may get in the way?
I have a very basic form in which is an input to upload a file (xlsx in that case) just like so :
<input type="file" data-file="import" name="xlfile" id="xlf" />
In the whole application, I ...
0
votes
0answers
8 views
Column relative resize when text wraps on smaller screen IONIC HTML5
I am working on an Ionic based web-application. This page's layout is three separate column lists. When the screen size is too small, the middle column automatically resizes to wrap the text, and as a ...
-1
votes
3answers
30 views
Multiple conditionals with ng-show AngularJS
I have a ng-repeat that builds a table from a web service. I render 6 values like this: med:1 lab:1 pl:1 in one cell. I need to make a decision based on those 6 values. My ng-repeat code is like this:
...
0
votes
0answers
5 views
$injector:nomod for any module i register on my app.js when using gulp serve:dist
Good day everyone.
I created an app using the Angular Full-Stack Generator version 3.7.4.
I can add dependencies normally using bower and then register on the applications main (and only) module ...
0
votes
0answers
15 views
loading directive with attributes to page as object from a Controller generates an error
I am having an issue with an application I am working on. In my app I have a module that has a number of costom directives. On one of my pages I have a controller that I am using and in this ...
0
votes
1answer
15 views
Second upload of the same file doesn't open new dialog window
I've made a directive for file upload. When I'm trying to upload only the same file, the dialog which is after uploading doesn't show. I don't know how to figure it out to open next dialog every time.
...
1
vote
2answers
9 views
It's possible to change the templateURL through attributes in a angularjs directive?
I have the following directive:
(function() {
'use strict';
function header() {
return {
templateUrl: '/app/home/homeheader.html'
};
}
angular.module('app').directive('...
0
votes
2answers
18 views
How to display a dynamic message in a parent controller based on the results obtained from three child controllers
I have a div which wraps three other's, each with its own controller. I want to dynamically display a message based on results obtained from each controller. For instance if 1 of the 3 arrays resolved ...
-1
votes
0answers
12 views
I need an angular timeline chart for alarms
I need an angular timeline chart that shows on xAxes Alarms, Measurements and Actions and on yAxes time of its creation. I have all data returned for all together in time order. For the firs graph I ...
0
votes
5answers
31 views
AngularJs returning data for multiple dynamic dropdowns
I'm using angularjs with asp.net mvc. On my page, I have 5 dropdown lists, all populated with values from different database tables. In order to retrieve the data for all dropdowns, I'm making 5 ...
1
vote
0answers
8 views
Ionic&AngularJS, timeout not canceled
I'm stuck because of timer issue.
Briefly, the code submits a form and the answer to the post is opened in an iFrame.
An EventListener on the form allows me to detect the "submit" and apply a timer ...