Tagged Questions
0
votes
0answers
5 views
Image upload issue: Angularjs and Laravel API
I am trying to upload image on my server but my api didn't get the file and says "Call to a member function getClientOriginalExtension() on null". I don't know where is the problem . here is my code. ...
0
votes
0answers
5 views
How to use leaflet search on a basemap when working with angularjs?
I'm working with a mapbox based leaflet map and i want to add a search tool to it so that user can search any location on the basemap with autocomplete functionality. i have used angular leaflet ...
-5
votes
0answers
34 views
function() in Angular javascript [on hold]
I do not understand what is function() in javascript angular.
Can anybody explain that for me?
app.controller("myNoteCtrl", function($scope)
0
votes
2answers
26 views
Auto-updatable values in angularJS
I have array of dates $scope.dates = [] ($scope.dates[0].date). I need to create another array with auto-updateble(!) values of durations.
$scope.dates[i].duration = Date.now() - $scope.dates[i]....
0
votes
0answers
21 views
get data from server in the Angular JS application config
I'm trying to use angular-translate to translate labels following user's language.
and I'm referring to this exampe
However I need to get those details from database, so is there any way to get that ...
-2
votes
0answers
10 views
complex condition for angular ui-route url parameter via regexp
How I can to set condition any string except "admin" for angular ui-route parameter with regex?
This is my config for state (coffeescript)
.state
url: '/{celAlias:(?!^admin$)(^.*$)}'
...
0
votes
1answer
15 views
Angular Bootstrap Modal binding issue
I'm working with Angular Bootstrap and actually I'm trying to update correctly my model using a Modal.
Here is the very simple code:
controller:
function open(room) {
var roomModal = $uibModal....
0
votes
0answers
12 views
Data passed to angular d3 directive not arriving in time
I am doing a mongodb query and passing results to an angular directive that contains d3 chart logic. I am using a controller to pass myData to scope, and can print it in HTML just fine, but the ...
1
vote
1answer
23 views
Why wont my jsp page recognize my angular controller?
jsp page
<!DOCTYPE html>
<html data-ng-app="myApp">
<head><title>Sample JSP Page</title></head>
<body>
<div data-ng-contoler="mainController" >
&...
-2
votes
1answer
26 views
error in bootstrap datepicker $(…).datetimepicker is not a function
I am creating a web app in angularjs with mvc,
I used of the datepicker of bootstrap,
code
<div class="container">
<div class="row">
<div class='col-sm-6'>
...
0
votes
1answer
21 views
ng-option and ng-repeat, linking up selected object
<select size="20" style="width: 585px" ng-disabled="disableControls" ng-model="ComputePermissionsService.selectedPermission">
<option ng-repeat="permission in ComputePermissionsService....
0
votes
5answers
26 views
Angular var used outside of function
a simple Angular / javascript question:
I have a form which uses two functions, one is executed "on click", the other "on submit":
$scope.onclickevent = function(files) {
$scope....
0
votes
2answers
17 views
Call method / trigger an action on a child component in Angular 1.x
I am trying to utilise component in Angular 1.6 with:
one-way data binding for inputs (e.g. < bindings instead of =)
events for outputs (& bindings).
What is the best approach for calling ...
0
votes
1answer
13 views
AngularJS Services : retrieve data from .asmx webservice using $http get with parameters
I have found tutorials how to use AngularJS $http get to retrieve data but could not find how to retrieve data from .asmx webservice using $http get with parameters.
In my AngularJS Services, I have ...
0
votes
1answer
13 views
Angular Material md-tooltip doesn't work in firefox
I am using angular material in my application and i am trying to implement the tooltip on a icon. when the user hover on the icon i want to show the text. i have implemented the following and it works ...
0
votes
1answer
14 views
Bind a single ng-model for 2 ng-repeat in Angular Radio button
I have two different lists, which I need to display as a single list on a page and show as a radio items in a screen. How to identify the ng-model and selected values if no element is chosen or by ...
2
votes
4answers
63 views
disable a button if json is empty
i need disable a button using css or angular, but it has to be according to the json, i mean if book.BookGanga is empty then the button has to be disabled, if book.BookGanga is not empty then the ...
0
votes
1answer
22 views
How to use an Angular2 Directive to inject DOM element?
I would like to create an Angular2 directive to display a tooltip when the user hovers over a list item.
The Angular2 docs look like something like this:
@Directive({ selector: '[myUnless]' })
...
-4
votes
0answers
24 views
Compare a variable in IF condition (angularjs) [duplicate]
I'm not too familiar with angular js.
How can I compare a variable in if condition into a multiple value without using nested IF
Example:
var = ItemsValue; // i need to compare this variable to ...
0
votes
1answer
19 views
angular 2 dynamic form with dependent fields
I need to create form with different blocks which depends on each other, some inputs should make other inputs appear/disappear, be required or change some other validations.
As far as I understand, ...
0
votes
1answer
15 views
How to add a new QR Code function to Moodle Mobile (written in Javascript)
I am tasked with adding a QR code generating feature to Moodle Mobile. But I have no idea where to start as I have little knowledge of Javascript.
The below image (see link) shows a quick sketch of ...
0
votes
1answer
35 views
Angularjs function calls order
I have a dropdown list of options, which are shown or not depending on conditions.
<div class="col-sm-9">
<select class="form-control" ng-model="vm.templateType" ng-disabled="vm....
1
vote
1answer
18 views
Unit tests breaking using AngularJS, Pusher + Karma
A project I am working is using Pusher, along with Karma for Unit tests. The unit tests are currently failing , citing the following error:
ReferenceError: Can't find variable: Pusher
at runBlock ...
0
votes
0answers
17 views
how to set(push) BACK view / history in ionic & angularjs
I am using hashbang so I can't use html5 history API and I need to set a back history/state when I navigate from a state to another.
For example I am on the first page then I use $state.go('app....
0
votes
4answers
40 views
Angular2 Http Call not firing
Context :
Following several tutorials, I am testing authentication with Angular2 and JWT. I come with a component and a service :
app.component.ts
user.service.ts
App component (and template) ...
0
votes
4answers
41 views
The controller with the name 'mainController' is not registered
i have this code in my script.js file
var mainController = function($scope){
$scope.message = "Plunker";
};
and this is my HTML
<!DOCTYPE html>
<html ng-app>
<head>
&...
1
vote
0answers
15 views
ng-dialog not showing content of template in popup window
I want to create a pop up on click on contact us buttton. I am using ng-dialog
Here is my code which i am using.
home.html
On click of this contact US button i need a popup window.My popup is ...
1
vote
1answer
38 views
AngularJS - Function not called?
I have below code written in my controller
function SteppersDemoCtrl($mdStepper, $timeout) {
alert('hi');
this.$mdStepper = $mdStepper;
this.$timeout = $timeout;
this.isVertical = ...
0
votes
0answers
10 views
Add more entitiy objects to SaveBundle of Breezejs while intercepting Save function using Angularjs
I wish to create an interceptor which would intercept Save function of Breezejs and would like to create more entity objects and add them into SaveBundle before finally letting it go through to ...
0
votes
0answers
12 views
Update Video src value when button is being clicked using angular 2
I am trying to update/change the video src path when clicking on buttons. After initializing the video tag, it works, but changing the value doesn't update it. I have tried using [src], src, [(src)] (...
0
votes
1answer
13 views
Angularjs : Uncaught TypeError: Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'
I need to upload multiple images in a div , i try the below
angular code :
$scope.stepsModel = [];
$scope.imageUpload = function(element){
var reader = new FileReader();
...
0
votes
1answer
23 views
Angular UI router sub states not working on IE
As I said in my other question, I'm creating a webapp in AngularJS with NodeJS, Express and Angular-UI-Router.
At first I couldn't get the page to load at all (I managed to solve that problem), now ...
0
votes
2answers
41 views
Trying to get DropDown value
I'm trying to get Dropdown select value for my On change Function but got undefined value.
what I did so far is that
<div class="list">
<div class="item item-input item-select">
...
0
votes
1answer
22 views
How to prevent page reload or refresh in AngularJS
$http.get("check_login.php")
.success(function(response) {
if(response.login == 1 || response.login == 2) {
window.location.href = 'new.html';
event.preventDefault()...
1
vote
0answers
18 views
puuting validation on submit button for lodash filter
I have three dropdowns:
<form name="myForm" ng-submit="save(myForm.$valid)" novalidate="novalidate">
<div class="form-group">
<label>Values:</label>
<label>First&...
0
votes
1answer
28 views
Angularjs - How to disable submit button if any value exceeds the ng-repeat element value
I have such type of program.
var app = angular.module("myApp", []);
app.controller("myCtrl", function($scope) {
$scope.records = [
{
"Amt" : "500",
},
{
"...
1
vote
0answers
16 views
Angular app cache issue in loading nested view URL
I've been building my angular application using gulp.
My index.html file will contain script and style file name with hash value append at the end.
This has been used to add revision to file names on ...
0
votes
1answer
32 views
Apply color code from AngularJS file to sass
Based on login I'll get the color code and I'm storing it in localstorage and getting it throughout application. But challenging thing is I've to replace the color code in sass file.
$Primary-color:#...
0
votes
1answer
31 views
What does the arrow mean in JS file in Visual studio editor?
Have seen this in one of the dev machines in a tech forum.
They have the arrows being used instead of tabspaces in JS file.
Attached a screenshot of the same.
What is this btw ?
Picture:
I ...
0
votes
0answers
32 views
Query to mongodb are slow
When i make query to mongodb using Mongoose it will take a lot of time.
My code is :
Even there is no much data in the collection. It's only 3-4 documents.
this gif will show what my problem is. ...
0
votes
0answers
18 views
nvd3 tooltip is showing index instead of label
I am having problem nvd3 tooltip in multichart(multilinechart). Here my XAxis label are JAN,FEB,MAR... DEC. But when i mouse over in the graph it is showing 0,1,2,3.. 11 as tooltip title. But i need ...
1
vote
4answers
40 views
AngularJS : Ng-Options in Array of Arrays inside select
I am trying show options from array of array inside a select drop down but it is not showing up. Can someone tell me what I am doing wrong here ? https://plnkr.co/edit/HMYbTNzkqkbAGP7PLWWB?p=preview
...
-1
votes
1answer
18 views
react-native filter and search data in JSON
i am new with react-native. Now i am using react-native for my school Assignment.
Before using react-native, i used ionic.
i am trying to filter data. The data is in JSON Format.
does react-native ...
0
votes
2answers
53 views
I need to add an object to an array using angularJS
I'm new to angularJS and currently struggling to add an object from a form to an array. When I click the "Add New Product" it triggers the "newItemModal", I enter the new product information but ...
0
votes
2answers
20 views
curl: What's the difference between -d and --data-binary options?
I'm trying to send a post request to a REST Api. I noticed that everything works fine when I pass parameters with -d option in curl. Example:
curl "https://mywebsite.com" -d "param1=x" -d "param2=y" -...
0
votes
2answers
25 views
How to create a layout template for angular routing?
I use angular routing:
angular.module("app-test", ["ngRoute"]).config(function ($routeProvider, $locationProvider) {
$locationProvider.hashPrefix('');
$routeProvider.when("/",
{
...
-1
votes
1answer
27 views
Angular UI-Router, not found on URL refreshing [duplicate]
When I type http://localhost:6060/home, it showed me cannot get /home, but when I click the button $state.go('home'), it shows, and the URL is still http://localhost:6060/home. But when I refresh, it ...
0
votes
2answers
33 views
Why are some of my Angular JS data bindings not working?
I am working on rewriting a site into Angular JS 1.5.7 and the code is not working with some data bindings.
The data binds the first time I fire up the server and serve the files, but if I reload it ...
-2
votes
1answer
19 views
Load data without hard refresh
Case: An user purchases an airplane ticket from American Airline on my website. It takes an hour for the order to get processed, after which I need to show a navigation tab.
Question: I don't want ...
0
votes
0answers
15 views
Angularjs and JQuery plugin - Possible to use components instead of directives?
I currently write any jquery plugins into angular directives and use the directives link function to initialise my plugin. In the link function, something like
angular.element($element).myPlugin();
...