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
3 views
Using a provider from a shared Angular 2 library causes exception: token must be defined
I am creating a shared library for Angular 2 projects.
I can add classes and UI components to the library and use them in another project without a problem.
However, when I create a service provider, ...
0
votes
0answers
12 views
Configuring an express server to serve my webpack production site
I've been working on an Angular 2/Webpack project that I bought through a template which already had a webpack development and production server. They go as followed:
webpack.config.js:
// Look in ...
0
votes
0answers
12 views
check if $index in ng-repeat is null
I have a grid view with two grids per row. This is the code:
<ion-content scroll="true" class="has-header">
<div class="row" style="padding-bottom: 40px;">
</div>
<...
0
votes
0answers
6 views
Unhandled Promise rejection: Can't resolve all parameters for
I am building an SPFx angular 2 component, that has a nested child component. The child component needs to reference the current context, but if I do:
import {
IWebPartContext
} from '@microsoft/sp-...
0
votes
0answers
10 views
Angular Not applying animation styles to ngShow/Hide
Literally copy pasted from the angular API, but won't work on my machine? I've read ngAnimate was depreciated a while back. Currently using 1.2.3 but can't get the animations to load?
Is the Syntax ...
0
votes
0answers
13 views
AngularJS $scope.$watch on multiple filters
I have been tinkering with no luck, at first I thought I had it but now I can't get the results of multiple filters to remain consistent.
My issue is that when I select a filter on the front-end, the ...
0
votes
1answer
12 views
Angular Directive Template Doesn't Bind To Angular Controller Variable
I have a curious case that I can't figure out...
I have a directive on my app like so:
app.directive('cartTotal', function() {
return {
template: "<i ui-sref='cart' class='fa fa-shopping-...
0
votes
1answer
10 views
angularjs ui-select disable dropdown list and make it only searchable
Here is the plunker for my issue: http://plnkr.co/edit/9DsLidTZR7RJDEq6PW0H?p=preview
I would like to make the dropdown menu searchable only: the use only sees the list of the dropdown items ONLY ...
0
votes
0answers
24 views
How to make a login page using AngularJS?
I took a few pages on my project. How to organize the authorization in the application, so that outsiders would not have been available is nothing but the form of login and password?
I use $...
1
vote
1answer
19 views
Replace object with existing value in array in AngularJS
I have an ng-repeat with a select in every item.
The user can select a value (trigging a function that pushes the an object into an array), but they can also change their mind, in which case the code ...
0
votes
1answer
14 views
Angular 1.X creating a form with value that is incremented/decreased by button
Using angular to provide users with a form for which they can enter values, but want to provide +/- buttons to allow them to use it if desired (tablets etc)
My knowledge of angular is still being ...
0
votes
0answers
20 views
Cancelling an AngularJS ng-click event from a directive
I've written a directive that should allow text to be selectable when inside on an element with an ng-click on it. When the mouse is pressed and then moved past a threshold the click event is ...
0
votes
0answers
18 views
Using jquery pluging inside Angular 2 app
I'm trying to use this jQuery plugin https://github.com/kevinchappell/formBuilder in my ng-2 app. I know that is not considered as a good practice but I haven't found analogs writted in ng2 natively(I ...
0
votes
0answers
16 views
Flask and angular 2 development and production deployment best practice
I currently have a Flask (backend) / Angular 1 (frontend) app working well where I hardcoded all the javascript includes into the index.html and served it and local js files from Flask.
No Javascript ...
0
votes
1answer
7 views
ionic v2 calling a function from caller page in provider
I have a case in which I want to call a function (f1) in a provider and then from that function (f1) I want to call another function in the page.
this is the code for page1.ts
import { ...
0
votes
1answer
9 views
need only sign displayed at a region
How do you get done so, then it is only a radio as display the text when you have that value. That is to say that there will always be only one being shown. and it must not be shown to the other.
The ...
0
votes
2answers
34 views
Simple login page - form method post doesn't work
Hello I have simple login page which works fine when I am using bootstrap but I want to use angular material design.
I am looking for problem from 3-4 hrs and nothing. I think that form doesn't send ...
0
votes
0answers
17 views
Upload file with angular
I am trying to upload a file with angular and asp.net mvc. The file was uploaded in the folder and I am returning an action result from the c# controller. But I am getting the error Cannot read ...
0
votes
0answers
10 views
Custom query in angular-indexedDB
I am using bramski/angular-indexedDB in my application. CRUD operations are working fine, but the custom queries are not working as expected.
I am using the code
angular.module('myModuleName', ['...
0
votes
0answers
28 views
Is it possible to to post to twitter through Twitter REST API using just Angular (>2.x)?
I want to be able to post a tweet to user's timeline through my Angular application. I'm trying to access twitter API in Angular with no luck. Some of the tutorials I've seen on web seems to use some ...
0
votes
0answers
13 views
Ionic Grid Change Color On Click
I have a grid where each square represents an item. When the item is clicked it is added to an array and when clicked again it is removed from the array.
I am trying to change the color of the ...
2
votes
1answer
14 views
Making real requests to HTTP server in AngularJS unit/integration tests
Making a request that wasn't mocked with $httpBackend.when in Angular 1.x unit/integration test results in an error:
Error: Unexpected request: GET /real-request
Is it possible to make real HTTP ...
0
votes
0answers
17 views
Ng-model variable changing in $onInit method but model don't change
I have a simple currency converter app, after getting data I set the result variable which depends on From input value, but after changing From input, result input don't change
$onInit() {
this....
2
votes
1answer
18 views
AngularJS directive runtime binding
I'm still learning angularjs and today I wrote my second directive (hello world was the first).
I dont know whats wrong with plunkr. I couldn't able to setup AngularJS on plunkr. So sharing a image ...
0
votes
1answer
19 views
Can't update table in Laravel 5.4 using Elequent query
I am using Laravel 5.4. I made a function for two (insert and update).
When id is not found it will hit insert otherwise it will hit the update method.
Everything is working well but the update ...
0
votes
0answers
14 views
“Ionic / Angular 2: Access object: Error in ./Page1 class Page1 - caused by: Cannot read property 'name' of undefined”
I try to write an application in Ionic: here's the code:
<ion-header>
<ion-navbar>
<button ion-button menuToggle>
<ion-icon name="menu"></ion-icon>
</...
0
votes
0answers
15 views
Working with the charts in angular.js
I created two simple line charts using chart.js and angular.js, first chart I created works fine but the issue is in the second chart, Im expecting a chart similar to the first chart but it generates ...
0
votes
0answers
5 views
Start by triggering the android application [on hold]
I develop an ionic application.I list the installed applications on the device in practice.After that I can select one from the list and trigger it to start that application.Is there any idea or ...
0
votes
0answers
5 views
can i open 'mdbottomsheet ' over another 'mdbottomsheet ' in Angularjs Material?
I'm beginner in AngularJs Material, I want to open a 'mdbottomsheet' and put a button inside this sheet, when click button, open another 'mdbottomsheet' over, without closing the first 'mdbottomsheet'....
1
vote
2answers
25 views
Listing of JSON objects with image as attribute
So I'm trying to build a table or list of missing persons, the list will repeat an array of JSON objects with ng-repeat.
The problem, broken up:
1.Why is JSON giving me a parse error? It isn't the ...
0
votes
2answers
31 views
how to make angularjs loop run continuously without error
I have written a loop in angularJS with delay and I want to run it continuously. Here I tried a while loop including the following code but due to running infinite time it gave me error, but my main ...
0
votes
0answers
6 views
Using Cart.js, how do I avoid having tooltips overlap?
I am using Chart.js via Angular Char. I have displayed all the tooltips in order to download a chart with the information displayed by creating a plugin.
The tooltips overlap, there doesn't seem to ...
1
vote
1answer
14 views
Unable to call Angular Controller on a new page in Phonegap Framework7
The Angular controllers work fine in the index page, but when I call them from a linked page, they don't work. What do I need to do with the controllers to be able to work with pages too?
My index ...
0
votes
1answer
13 views
Intercepting laravel validation errors in angularjs
I am currently working on a contact form for my website using angular js front end and using Laravel as a backend api.
This is an example of what I have as a field.
<div class="row">
<div ...
1
vote
3answers
36 views
Displaying data inside table rows from a Json Array - AngularJs
I am quite new with AngularJs,and created a table. Each row is reading data from a JsonArray which is declared inside a controller. However,the rows are empty.
The code is shown here: https://...
0
votes
1answer
20 views
Hiding an element in a drop down list based on a condition in angular js
I want to hide the option "Chad" in the drop down list if the user type "Cha" in the input field.
For that I wrote the following code using angular js and javascript and what should I include within ...
0
votes
1answer
24 views
Importing external npm module in Angular2
I would like to import file-system npm library to my Angular 2 project and strictly followed these steps:
https://medium.com/@s_eschweiler/using-external-libraries-with-angular-2-87e06db8e5d1#....
1
vote
2answers
29 views
Make two layouts share the same $scope
I want to propose two layouts (ie, horizontal and vertical) for my contents. So switching in the selector will lead automatically to the corresponding layout. Here is the JSBin:
<html ng-app="...
1
vote
0answers
7 views
How to invoke a function(like playing a an audio which says “STOP”) when the stopwatch passes over a minute in AngularJS?
var app = angular.module('fruitjs.timer', []);
app.controller('timerController', [ '$scope', '$interval', function($scope, $interval) {
var interval, incrementTimer, actions;
actions = { start:...
-3
votes
0answers
12 views
Http get URL as per requirement
deltatab?tabs=part_sourcing&yearmonth=201702&startrow=2&record=100
Thanks in advance..
Please use my code.
1
vote
0answers
14 views
Fixed top and bottom divs, Mobile keyboard issue
I'm using straight forward bootstrap to implement like a mobile chat website.
Experiencing css issue when selecting an input(seems iphone specific as android is working as expected). keyboard is ...
0
votes
1answer
14 views
Showing next available dates with 24h margin with Angular and MomentJS
I'm trying to display an array of possible delivery dates using AngularJS and MomentJS.
The issue is that it needs to meet certain conditions: Delivery dates are only Monday, Wednesday and Fridays.
...
0
votes
1answer
10 views
permissions.AllowAny DRF
I am using Django, DRF and Angular. Since I started working on my API I have been managing to connect and retrieve data from my db to Angular. All of a sudden today I started getting a 401 ...
0
votes
0answers
6 views
Loading data from a json in ionic2
HTML CODE
<div class="row" *ngFor="let data of mydata">
<div class="col">{{data.number}}</div>
<div class="col">{{data.code}}</div>
</div>...
0
votes
0answers
9 views
How to properly download a file with a Javascript client and a Python/GridFS backend
I am building a webapp in AngularJS frontend with a Python Flask backend and a MongoDB/GridFS database.
I want to make the client download a file in the browser, the same way on direct download ...
1
vote
1answer
15 views
Expected EOF error for JSON object jslint
I'm working on putting an image in a JSON object, which is proving to be a real pain. Although I can get the image to display on the website's landing page (base 64 code is correct), what I want to do ...
-2
votes
0answers
21 views
AngularJs ng-route not working in IE 11
I'm a beginner to AngularJs and currently working on a small test project. I found out the app perfectly working fine on Firefox but not in IE 11 and Chrome. I've been trying most of the fixes in the ...
0
votes
1answer
10 views
Jasmine JSON fixtures VS service mocking
Assume we have a service which calls api and we use this service to do some logic in a controller.
What is better to use?
user = $injector.get('userSrv');
var myFixture = angular.fromJson(window....
-1
votes
0answers
19 views
How to track real time location using JS/AngularJS
Built and web app that tracks the current location of delivery person and shows the smooth transition when he is on the way. Using JS or AngularJS.
Please help me.
Thanks in advance.
0
votes
0answers
11 views
Loopback private chat room using Fireloop.io
i am new to using nodejs with Loopback. I've job from my office to create realtime chat app. My boss suggest to me to use fireloop.io and I always read doc from http://docs.fireloop.io/en/api/ and ...