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.
-2
votes
0answers
11 views
Angular and simple javascript functions are not working together
On my client side I want to write functions using both the java-script and angularjs, but when I call the functions of the javascripts I have written from inside an angularjs script, it cannot pick ...
0
votes
0answers
6 views
angular ng-show greater than is not evaluationg
I've been trying for two days to made date filters with input using Rails and angular, but finally I gave up. The format of the date that the input is giving to me is different than the one that I ...
0
votes
0answers
4 views
How to install ion-google-place in ionic cordova application?
i use this Tutorial https://github.com/israelidanny/ion-google-place
to install (ion-google-place) but i found anything.
please any help.
0
votes
0answers
4 views
Extracting the specific header message from the $http response headers
I am(data,status,headers,config,statusText) using $http.post() to make server calls in an application. The server code is in .net. For a specific use case, when a process fails, the server returns a ...
0
votes
0answers
10 views
Thymeleaf not working with AngularJS ng-view/ng-include
everyone.
In a project I'm involved with, we're using AngularJS, but also Thymeleaf on the root html-page, and it's HTML5.
While using Thymeleaf on the root page is fine, I can't seem to get ...
0
votes
1answer
33 views
angular (js) alert with a large image
I have a project which involves crowdsourcing elements.
As part of that, I would like it when a user enters a specific html page, that they will be prompted with a nice alert, with a "large" (Hi-Def, ...
0
votes
4answers
26 views
using $scope in a directive using angular
I'm trying to create a directive using angular 1.5.0-beta2
I want to use an http request in that directive and to paste the data to the view. usually it's done using $scope but it seems like i can't ...
0
votes
0answers
5 views
Issue connecting to private_pub faye server from angular ionic
I have a rails chat application and a Faye server running, both using private_pub. Chat messages are successfully being published/subscribed to in this setup. And because of the way private_pub is ...
1
vote
1answer
15 views
Protractor - Find an element with css selector
I'm running protractor e2e tests on an angular page and I wan't to check some dropdown boxes for their selected options. I got the following html code generated from angular:
<select ...
0
votes
0answers
21 views
Promise data not returned on device in Ionic app
I've been pulling my hair out for the last week over this bug so I'm really hoping someone will be able to tell me where I'm going wrong.
I have a ionic app, I'm using PouchDB with the SQLlite ...
0
votes
2answers
24 views
AngularJS ng-click not firing controller method
I'm sure everyone has seen questions of a similar ilk, and trust me when I say I have read all of them in trying to find an answer. But alas without success. So here goes.
With the below code, why ...
0
votes
1answer
32 views
Angular: module behavior, I don't understant javascript code if (“”)
I am using angularjs 1.4.3. And I have a curiosity because I don't understand a piece of code of the code generated by Jasmine Spec Runner.
When we generate it, Jasmine (via ChutzPath) create this ...
0
votes
1answer
20 views
“destroy” ng-if once expression is true
I am wondering if is possible to unbind/destroy ng-if once it's value is true?
I created tree structure with recurrence directive and each of branches has <div ng-if="visible"> which keeps ...
1
vote
1answer
12 views
Manipulate active tab in angular
setAlas, another angular question - it just doesn't work as intuitively as I hoped.
In templates I have a couple tabs:
<div ng-init="setActiveTab(1)" class="tab-nav two-tabs clear">
...
1
vote
0answers
7 views
can I use xeditable with $resource?
Is there a way to use an angularjs $resource with x-editable remote validation? I'm trying to avoid building a one off $http method since I already have a resource that does pretty much the same ...
1
vote
1answer
14 views
Symfony2, FOSRestBundle - catch exceptions
I have Symfony application and I use FOSRestBundle with AngularJS. My Symfony application haven't any views.
I want to show in AngularJS messages about information received from server, with ngToast ...
0
votes
1answer
13 views
Angular Material Design: how to automatically use all the built-in UI icons?
I am trying an Angular app project with the Google Angular Material library.
Added #master branch via Bower as directed. Linked the CSS and JS fils from Bower Components to my index page as directed.
...
0
votes
1answer
18 views
ui router, start view when loading page
This might be a stupid question but I can't find a way to just display the view when the page is loaded only when I dont put manual '/#/' to it.
But I just wanna dispaly it on ...
1
vote
4answers
23 views
Angular: List or show existing forms in $scope
How can I detect, if a form is currently existing in $scope at a given time? (maybe there is a link: "show current forms in the current controller's $scope")
How can I list existing forms in the ...
-1
votes
1answer
28 views
Angular Date Directive - Where Do I Specify The Model?
So currently using the below code to convert date inputs into milliseconds for my model.
It seems to be working, however, how do I set it to a specific model? For instance, if the model input needs ...
2
votes
2answers
24 views
Error: [ng:areq] Argument 'GreetingController' is not a function, got undefined
I am trying to make angular work with Django. With very difficulty I made it work with Django and Angular, but now I am getting one more error. Everytime I load it, I get following error.
Error: ...
0
votes
2answers
21 views
Thinkster MEAN stack tutorial, deletion of element
I've been following the Thinkster Mean Stack tutorial, and it works wonderfully. So I have created my own project, and so far everything works fine.
However, they didn't cover how to delete posts.
...
3
votes
3answers
41 views
Promises : go to next error function [duplicate]
How would you make a call to the next error function with promise chaining?
I thought a return inside the error function would automatically call the next error function.
//Called in a controller
...
-1
votes
0answers
22 views
Javascrip in Angular. Value, match and replace throw a exception.. Why?
I have this little javascript I want to use in a Angular service or controller.
function cprCheck(frm) {
var cpr = frm.cpr.value
if (cpr.match(/[0-9]{6}\-[0-9]{4}/)) {
...
-1
votes
1answer
20 views
AngularJS material loading bar
I just want to integrate https://material.angularjs.org/latest/demo/progressLinear
when a new view is loading.
SO the question how to get the value of current page loading?
1
vote
1answer
22 views
Wait for inner directive to compile before calling api function
Im following the below pattern where i need to call the child directive's API function from the parent directive
Following is the fiddle: http://jsfiddle.net/gauravsoni/qykbfvy0/2/
var myApp = ...
-2
votes
0answers
14 views
AngularJS: Plugin for dynamic row header ng-grid?
I'm using ng-grid, but my requirement is to make grid row header height dynamic.
Is there any plugin or CSS available for resolving this issue?
Thanks for any guidance!
2
votes
0answers
18 views
Using Bootstrap's Datepicker with ControllerAs syntax
When I try to use Bootstrap's Datepicker within an Angular controller that uses the controllerAs syntax, the following code does not work:
$("#endDatePicker").datetimepicker({format: ...
1
vote
1answer
45 views
Get content of controller variable
I'm developing an app with Ionic and I have a problem with my variables of my controller.
This is a part of my index.html:
<body ng-app="starter" ng-controller="ListController" ...
0
votes
1answer
8 views
Android WebView randomly not responding to touch events
I have an issue with my Android Web Application.
The application is installed on a Tablet (LGV700 - 4.4.2) that runs only for that purpose (powered 24/7).
The application is a wrapper to a web ...
0
votes
0answers
9 views
Unit testing directives with nested dependencies
I am an angularJS beginner and I am trying to unit test a directive that has nested dependencies, I have tried different things but the service is always undefined. How do i go about this, I have ...
-1
votes
0answers
33 views
ng-click ,ng-change refresh page
I use angular-daterangepicker plugin
The code is:
<input type="text" ng-change="changeData('124')" ng-model="dateRangePick">{{dateRangePick}}
<button class="btn btn-sm btn-primary ...
1
vote
1answer
29 views
Angular - load data at app start and use in controller in different module
I'm pretty new with Angular and I'm stuck on this for a few days now :(
I have a web app (kind of portal with several web tools available).
I want to load some data from DB when the app being ...
0
votes
0answers
10 views
get access to chart-object in highchart
I´m not able to get access to the chart-object in highchart with the angularjs directive HIGHCHARTS-NG.
var chart = $scope.chartConfig.getHighcharts();
console.log("chart", chart);
Gives me an ...
2
votes
1answer
29 views
element.remove() method doesn't work sometimes
I have a test case that shows that angular element.remove() removes elements from the DOM sometimes, and fails miserably at other times even though I don't see an error. Here is the JSFIDDLE.
To see ...
0
votes
0answers
55 views
Directive doesn't work anymore after minifying
I've got a directive like this:
var tonicswitch = angular.module('tonicswitch', []).directive('multiSelectTonics', function(){
return {
restrict: 'E',
scope: {
items: ...
0
votes
1answer
13 views
Pre-Select rows on load [ui-grid]
I want to select certain rows on page load(working days)
This is the plunker
plnkr.co/edit/48NyxngWNGIlOps1Arew?p=preview
Any suggestion?
0
votes
2answers
15 views
Entering empty space enables the submit button in angular form how to trim and validate
I have a form, In this form I need to validate the password field. in my form field if I enter just a empty space the submit button getting enabled. so how to prevent this kind of scenario?
As well I ...
0
votes
2answers
37 views
Best way to check if all property values in object are = “”
I'm trying to check if an object's properties have no value (e.g. obj.prop1=='' for all properties).
What is the best way to achieve this in an angular expression? Incidentally is the angular ...
1
vote
1answer
15 views
Angularjs set href does not work from directive
So I wrote a directive that will be applied to link tags like this: <a href="..." replace-link"></a>. What the directive does is check some stuff and then modify/replace/remove the href. ...
1
vote
0answers
10 views
Angularjs Changes in bootstrap css for date picker
I want to build custom build calendar in angularjs, I am using datepicker directive from angular ui bootstrap. I want to modify some of it's properties in css to use it in my application.
I am trying ...
-3
votes
0answers
11 views
Need to compose email using ionic
I'm developing an app in Ionic/Cordova for us by iOs and Android smartphone users. As part of the app, I want to compose email in the background. I've researched extensively and found no way to use ...
0
votes
0answers
27 views
Fixed columns in Bootstrap table with AngularJS
I'm looking for a simple CSS solution which could allow me to have several columns fixed in my Bootstrap table. Actually, I want to be able to scroll on all right columns and still displayed a number ...
0
votes
0answers
13 views
Using angular.js routing inside ng-admin
I have the following problem:
I am using ng-admin to build an administration page. There is a custom page added to the ng-admin interface. The standard ng-admin pages are routed by ng-admin and there ...
0
votes
0answers
23 views
Use model element in directive
I have in my model a list of crytpedFile/password.
var Couple = function(f, pwd) {
this.file = f;
this.password=pwd;
this.valid = false;
}
I check the password validity with openSSL. If ...
0
votes
1answer
23 views
Angular Component Router Remove # from the URL
I'm using Angular 1.5 for routing with Angular New Router. I'm confronting a problem with removing # from the URL in order make them SEO friendly. There are 2 views namely first.html and second.html ...
0
votes
0answers
23 views
CORS not working - 401
Trying to fetch data from a WebApi. Here's the service call in TypeScript:
GetStatus(hostName: string): any {
this.Http.post(this.ServiceBaseAddress)
.success(data => {
...
-2
votes
1answer
25 views
AngularJS/Ionic list with last rows fading
I am trying to develop an app in which, by the designer's choice, I need to implement a list like the one in the picture. Normally, when we scroll, the last rows need to move up and become visible, ...
0
votes
2answers
8 views
Download data as csv irrespective of pagination
I have paginated the view to limit to 100. But when i want to export data as CSV im able to download only the data included in pagination. How to avoid that?
0
votes
1answer
30 views
Duplicate identical item
None of the solutions I've found to this question are satisfying to me.
I have a controller that creates, removes and duplicates items. Whenever I duplicate an item they would obviously have the same ...