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.
-1
votes
0answers
6 views
Using angularjs controller
I am using Angularjs but when i try to use the ng-controller function having give it a name of "Appctrl" and using the two way binding of double curly braces it gives me the following error:
Use of ...
0
votes
0answers
10 views
Set locale on momentJS won't work
I've installed momentJS on ionic/angular using bower - and it works fine. Except for changing locale to 'fr' or 'da'. The files are available in the locales-folder, but the following code still echoes ...
0
votes
1answer
6 views
How to use Google Charts in an Ionic app
I am trying to use Google charts in an Ionic app. However, I only get a blank page when testing the app in my browser. what am I doing wrong here?
My app.js file looks like this:
...
-2
votes
0answers
17 views
What are the main differences between AngularJS and ReactJS [on hold]
I want to create a web site which will later can be converted to an application (What I want to build is more suited to be a web site than an application so the building itself should be as a ...
0
votes
0answers
13 views
Call controller function and unset variable in object
I have a function getEvent();. This function does what it says. Now i have a function duplicateEvent(). It does what it says too. I want to remove the ID from the scope that getEvent receives. So if i ...
1
vote
0answers
15 views
Adding scoped function references in dynamically compiled directive attribute
I recently asked a similar version of this question here and got the answer I was looking for in that case. However, in implementing it, I've run into another stumbling block.
The issue pops up when ...
4
votes
1answer
12 views
Conditional filter
I have a tel filter which I will like to be applied only if a condition is meet. How can I do it?
This is my current code:
<span class="display-block" ng-show="event.category == 'Entry' ...
0
votes
1answer
16 views
JSON parse doesn't work for ng-repeat
So I'm using Ionic, angular, and ngCordova. I'm trying to load a JSON file which I have saved via JSON.stringify() of an array of objects. I have a factory that holds this array of objects, and ...
0
votes
0answers
6 views
Angular on Openshift: Uploads wrong build
So I have a weird problem when I upload my Angular-Fullstack project to Openshift.
The situation is that I have made a project using Daftmonks Angular-fullstack generator. After I have finished ...
0
votes
0answers
6 views
Dependent drop-down using Select2 (with MetroUI CSS) in AngularJS is not working
Please see the following Codepen for the issue in hand:
http://codepen.io/alencdave/pen/EPZWNR
The Body of HTML page that has selects:
<body ng-app="app" ng-controller="AppCtrl as vm">
...
0
votes
1answer
13 views
Call the output of a function in a controller
I have a function that runs in my html code and I'm having trouble calling that function to do more things with the output in the controller.
To start off with, here is my JS:
(function(angular) {
...
1
vote
1answer
14 views
Error when adding duplicate on array on angular js [duplicate]
I am trying to learn angular-js so I created a mini app where the user adds elements in an array and the values of the array are displayed above. The app works fine but crashes when a value that ...
2
votes
0answers
20 views
AngularJS ngAnimate Slidedown dropdown menu
I created an leftmenu with menus, and when I click on a menu it opens, but if I click too fast on him to close (when it is opening) it should close smooth, but the closing is instant, and sometimes I ...
0
votes
1answer
20 views
Angular Directive Syntax in HAML
I cannot get the syntax right - how do you add a directive to a haml template?
Let's say I have a directive called `my-directive'. I would like to put that into a haml template.
Attempt 1: Straight ...
0
votes
0answers
5 views
Why Kendo dataSouce.transport.update method do not send data to the server?
I have a Kendo UI TreeList where every row has a checkbox displayed. If the user clicks on the checkbox then a request goes to the server and save the data. Unfortunately, I did something wrong ...
1
vote
0answers
28 views
Broadcast not being received by directive $on
I am trying to load a ChartJS charts directive when user's data is retrieved from dashboard controller.
The broadcast is received only when I refresh the page when I am on dashboard. If I click on ...
-3
votes
0answers
9 views
How to create a time widget in angularjs? [on hold]
I want to create a time widget in angularjs like as in case of alarms in smartphones.As i need to enter time in a form field,so can anyone help me out that how it can be created ?
0
votes
1answer
14 views
Angularjs override http global interceptor
I am following the exact guide at http://www.ictit.com/en/blog/post/30/show-loading-screen-globally-and-centralize-in-ionic-angularjs/ to intercept http requests, I wonder if it is possible to ...
1
vote
1answer
16 views
using html5 data-action and angular
I was using jquery ealier before starting to use angularjs.
Earlier I head this:-
$('[data-action^="backtop"]').click(function(){
});
and now after integrating angular this does not work on ...
-1
votes
0answers
15 views
Creating timezone (GMT) select
Im pretty new to Angular js. Im looking to implement a select list.The list will be a timezone select (GMT). I can't find anything on Google ( only UTC time found).
What would be the best way to ...
5
votes
2answers
30 views
Angular 2: Inject view/DOM into component constructor
I can't figure out how to give a component a reference to its view, to do things like focus on input elements when the form is shown. I can't appear to inject Element or ng.core.ViewRef or ...
0
votes
1answer
16 views
What is the right way to setup urls.py for django-rest-framework + angular-route + static files?
I understand the concept of what I want to do (there is a rather nice question here: Django, REST and Angular Routes)
Django has a route for DRF, Admin, and needs at least one more, for the angular ...
0
votes
0answers
8 views
JQuery does not work inside <ion-view> “IONIC”
I am facing a weird issue, I want to make jQuery work inside ion-view but I am not able to do so. When I place the div id="owl-demo" outside ion-view it works, so I guess that there is a conflict ...
0
votes
0answers
10 views
Restangular get list by query parameters from form
My backend Controller looks like this
@RequestMapping(value ="/search",method=RequestMethod.POST)
@ResponseBody
public List<Book> searchSubmit(@ModelAttribute Book book, Model model) {
How ...
0
votes
0answers
25 views
ng-show doesn't work with Ionic framework
So i'm just trying to make a button where it changes based on whether or not the user is logged in or not.
Heres what I want:
<ion-view view-title="Settings">
<ion-nav-buttons ...
0
votes
0answers
24 views
angularjs input date ng-model binding cannot show
Here is my situation:
I use $uibModal pass an object "check" into modal popup window.
Each data shows up except the date. There is nothing wrong with the modal or other codes since I can just display ...
0
votes
0answers
6 views
Hosting angular JS / HTML 5 web app on google app engine?
I am looking at Hosting angular JS / HTML 5 web app on google app engine as a single page app. All my services are also on google app engine within the same project.
I have generated the basic ...
0
votes
0answers
3 views
With nested ngResource, $save runs for which nested item?
Can I use one nested ngResource to use $save, $update,.. for each nested item? If so, how to apply it to the below code?
angular.module('restaurants')
.factory('MyRestaurantsSrv', ...
0
votes
0answers
9 views
Datatables + angular.js + xeditable is not working
I am using angular with Datatables and I am trying to edit a row with Xeditable, my issue is that there are no xeditables elements, the span is not turning into editable span.
Here is my code:
...
9
votes
2answers
111 views
What is the Angular2 equivalent to an AngularJS $watch?
In AngularJS you were able to specify watchers to observe changes in scope variables using the $watch function of the $scope.
What is the equivalent of watching for variable changes (in, for ...
0
votes
1answer
21 views
Setting more attributes to User than Email and Password.
I'm developing a web app with Firebase. When using the createUser() method of Firebase Angularjs API I can only define the Email and the Password of the User.
IS there any way to define other ...
3
votes
1answer
29 views
Angular2 routing with nested states
I have a landing page that will present the user (by default) and "Sign Up" component which is a set of input fields to allow them to register.
For returning users, I would want them to see the ...
0
votes
1answer
15 views
AngularJS UI router: Block view
Right now i am making an AngularJS+UI router install application. But i have a problem, the problem is, that i want to disable access to the views, associated with the install application. I want to ...
1
vote
2answers
12 views
How to set dynamic id(*nfFor) in ionic2/angular2?
How to set dynamic id in angular2 ?
I have try
<div class = "CirclePoint" *ngFor="#c of circles"
id = "{{ 'Location' + c.id }}">
</div>
this.circles = [
{ x: 50 , y: 50 ,id : ...
0
votes
1answer
28 views
How to call controller in javascript as opposed to html Angular JS
I am doing a tutorial on Thinkster.io which involves coding a simple News app with Angular JS. My code works fine when I reference the controller(MainCtrl) through ng-controller = "MainCtrl" but the ...
0
votes
0answers
13 views
Socket.IO sending all updates to all users in Angular Fullstack
I have searched in vain for an example or answer to this, so it may not be possible, but can someone point me in the right direction?
I am building a quick budgeting app using yeoman ...
0
votes
2answers
25 views
track by $index isn't solving dupes error
I am trying to iterate through an array of objects and display them in my HTML using Angular. I have done this before without any problems by using "track by $index". But the standard error is still ...
0
votes
1answer
18 views
Remove navigation bar in sidemenu based template in Ionic/Angular JS
I created an application using the Ionic Framework and it works great. It is based on the sidemenu-template, so I always have a navigation bar on top of the application.
<ion-side-menus ...
-1
votes
0answers
11 views
Play Yeoman on Dokku, Grunt error, cannot run program grunt
I build an app with Play! Framework 2.4, application is configured with play-yeoman plugin with angularJs. Front of the application places in /ui as play yeoman default configuration.
Now I want to ...
-1
votes
0answers
29 views
Refresh directive link after ajax call
I would like to delete some item from dom via $http service.
I have made a factory that represent ajax call(add/destroy/etc), and a controller which call this factory function(deleteImage). And a ...
0
votes
1answer
46 views
Value in ng-model doesn't update
I'm using this
<textarea class="notes" placeholder="Placeholder Text" style="height: 630px;" ng-model="notes"></textarea>
and from what I can understand ng-model="notes" means that the ...
0
votes
1answer
27 views
ng-if inside a ng-repeat. show the top 5 heights of a property
I have a ng-repeat element that runs on an array of pictures. Each of the pictures has properties of total likes and shares. I want to add an HTML div to the top 5 heights total likes and shares ...
0
votes
1answer
26 views
Toggle HTML elements using Angular and sockets
I try to create an administration panel with which I could set the displays of users in real time with sockets .
I use it for Angular , Angular Material , NodeJS and Socket.io
I have a back-end ...
0
votes
0answers
15 views
Even thought the array $scope.allAppDetails gets filled the first time. The next time i use the $scope.selectApp function my array is empty
angular.module("orgTools").controller("AndroidStatsCtrl", function($scope){
var selectedApp= null;
var PerAppDetails= null;
$scope.allAppDetails= [];
$scope.perAppStat= ...
0
votes
0answers
22 views
Wait for controller to load in Ionic app
On a certain page (page1.html) of my Ionic app, I link to a new page, let's say page2.html .
The controller of page2.html takes some arrays (with +1000 people in it), puts the arrays together, sorts ...
0
votes
1answer
14 views
Access uploaded image in NodeJS in AngularJS via ng-file-upload
I am using ng-file-upload framework to save images. I am facing an issue. I am successfully able to upload the image into an image folder and image is being saved like CPqc3h_zWwr_5n9xOzTBybz4.png. I ...
0
votes
0answers
51 views
Angularjs basic parameter access (beginner)
I'm building an app from an admin dashboard admin I bought in wrapbootstrap.
It comes with a module that loads a json file for translation.
I access this parameters via html like this
{{ ...
0
votes
0answers
12 views
Onsen UI & AngularJS: Show / trigger native Datepicker after click
I use a input to edit a date.
Initially, The input is hidden and is replaced by a div with the birthdate and a edit-Icon. After a click on the div, the input will be shown. Everything works fine, but ...
1
vote
1answer
30 views
How to href to an other view without back button
I have a side menu like this one:
Example
My problem is, if i try to href from one view to an other, i get a back button i dont wont...
For example:
<ion-content class="has-header">
<a ...
2
votes
1answer
31 views
How to display HTML character Entities in CSS pseudo elements with angularjs
I'm trying to output HTML character Entities as data attributes so that I can display it as I wish using css pseudo elements.
This works when we directly assign the value of attribute in HTML, but ...