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.
0
votes
0answers
4 views
Copy a $firebaseObject and save it to a different location
In my application i'm getting an object from my firebase using $firebaseObject. The use has two options with this object, change it and save the changes in the object or change it and save it as a new ...
0
votes
0answers
33 views
Cannot read property of undefined. How to define?
I am trying to run a custom PUT in Angularjs, however I cannot for the life of me get it to work. I need both UserResource and user to be defined but only the parameter in the first position of the ...
0
votes
0answers
7 views
How to write simple expressions in Angular js?
I am looking for a simple expression in Angular JS template like:
Assume....
<div ng-init="i=0"></div>
........ some use of the i as 0.
Now, I want to assign i=8 here. this one should ...
0
votes
0answers
7 views
Ionic tab animation not working
I am using Ionic framework to create a mobile app. I am using the ionic template from ($ionic start myapp tabs). When I click on the tabs, I want the animation to be slide in from left or right. For ...
0
votes
0answers
2 views
How to implement the rsa encryption in cakephp3
I got some code for RSA implementation in core php but its giving error Fatal error: Class 'Crypt_RSA' not found in
include('phpseclib-master/phpseclib/Crypt/RSA.php');
$rsa = new Crypt_RSA();
...
0
votes
1answer
11 views
How to emulate Iframe only in IE8 mode.
The issue I have is the same as the 2 below:
Link 1
Link 2
The problem I have is that my app is an AngularJS page which use ui-router which is not supported in IE8.
To be able to correctly ...
0
votes
0answers
3 views
Cookies are not stored in Android webview API 21 and up
Background:
I am experimenting a very confusing behaviour with Android webviews in API 21 and up when testing in real devices.
I have a local hmlt5 application (inside assets folder) with the ...
0
votes
0answers
14 views
Angular.js setting ng-options with in ng-repeat
I'm trying to set the correct select option based on a value in the ng-repeat.
See example here: https://jsfiddle.net/vok080z4/5/
Crazy, if you view the example, why is dave set to apples, but no ...
0
votes
0answers
4 views
Jasmine Testing with Angular Promise not resolving with TypeScript
I have a fairly straightforward test that works against an Angular promise, which I'm resolving in the beforeEach function, but the then in my code is not ever firing and I can't see what I'm missing. ...
1
vote
1answer
17 views
AngularJS filter: Smart search
I am trying to filter results in an ng-repeat, but with a "smart search" feature, ie. using multiple keywords to search. The collection is a complex array of objects, containing objects.
According ...
0
votes
0answers
13 views
AngularJS and ddSlick not working
I'm trying to implement jquery ddslick (installed via bower), but without success. I've created this select in my code:
<select class="ddSlick">
<option value="3" ...
0
votes
0answers
24 views
ASP.NET AngularJS Application working on localhost but not on server
I am programming an AngularJS (with Material Angular) Application that communicates with an API (I am programming both, frontend and backend (API)). I am programming it with C# in Visual Studio. When ...
1
vote
0answers
9 views
Loading modules with dependencies in Jasmine
I have a module that is defined as this:
var angular_multi_select_engine = angular.module('angular-multi-select-engine', [
'angular-multi-select-constants'
]);
The engine depends on the ...
0
votes
0answers
4 views
Angular Gantt - How to set from-date and to-date range to show only required minutes?
I am working an Angular Gantt Charts. I set my Gantt chart headers to show only minutes. Also I want to set from minutes and to minutes range. I have coded like below. But It always display the entire ...
0
votes
0answers
11 views
Convert object to Angular $resource
I have plain objects that define a model. For example, {id: 1, name: foo, etc...}. If I have a resource service for that model, is there a way to convert the object to the resource?
0
votes
0answers
15 views
angular.js $compile doesn`t working
I try to change all input type dates in project to uib-picker-popup, I use directive and $compile but new element doesn`t work. When I put result html to new .html its working fine, I guess there is ...
0
votes
0answers
10 views
deserialise google flat buffers
I have a nodejs application that uses google flat buffers.
the fbs file for the drinks schema:
namespace MyAlcoholist;
table Drink {
drink_type_name: string;
drink_company_name: string;
...
0
votes
0answers
7 views
how get value outside ui-view
I have created multiple app.
My below code is running, the only problem is, I am put this piece of code in every app under app.config
I want to display HeadName outside <div ...
1
vote
2answers
24 views
AngularJS ui-router view not showing up?
I have a very simple appConfig:
var home = {
name: 'home',
url: '/home/'
};
var homeAccess = {
name: 'home.access',
url: 'access',
views: {
'home': {
...
0
votes
0answers
15 views
Angular ng-click and click handler in directive
I have a ng-click defined as an attribute for an anchor, but I also have a directive (ink-button) attached to it.
<a href="javascript:void(0)" class="button button--pink"
ng-click="vm.onSubmit()" ...
-3
votes
0answers
8 views
Why I can't connect openfire on iphone 3g?
I'm developing a hibrid app using Angular + Ionic and using Strophe to connect xmpp by openfire. The connection is ok using wi-fi, but in some sim card using 3g de connection is fine but in other ...
2
votes
2answers
25 views
How to call a function from a AngularJS directive with checkbox, when it is checked?
Recently I have implemented a directive which uses a checkbox customized with css. I need to call a function from a scope when the value of checkbox is checked. I've got something working with ...
0
votes
1answer
11 views
Angular State provider , state name containing '#' changing to '#/"
I am trying to create a new state for my application, like
mydomain.com/#men. So I did as below:
var categoryNames = ['men','woman']
$stateProvider.state('department', {
url: ...
0
votes
0answers
14 views
Angular 1.5 component buttons and styling
As the "replace" configuration is deprecated in general and not available in the 1.5 angular.component I wonder what the best practice is to style the components and keep re-usability high.
Example:
...
4
votes
1answer
17 views
ionic select does not update function dependent on scope variable
I have a ionic select box which updates a scope variable. I also have a scope function which is a function which is dependent on that scope variable (eg. it tests if it the variable is a specific ...
-1
votes
0answers
17 views
How to display a pdf file that you can browse?
I'm developing a mobile app with Ionic and I need to display a pdf file. I tried it with pdf.js and rendered my file in a canvas like it's explained here: ...
0
votes
1answer
19 views
Form with predefined values AngularJs
I am using AngularJs and have inputs with predefined value from ng-repeat. I want resend those data value via ng-click function to treat data.
The problem the data is not submitted
...
0
votes
0answers
10 views
$modal causes page to freeze in IE11
I use the following code snippet to show a simple modal:
$modal({
title: 'My Title',
template: 'path/to/my/simple.modal.html',
show: true,
scope: $scope
});
After closing the modal some ...
2
votes
1answer
18 views
_React Js one page application
I am looking to create a one page application with ReactJS.
Is it advisable to combine it with angular or it is suitable just on its own? I would like to populate the one page site with sections - ...
0
votes
1answer
31 views
Aligning image caption area with image
I have a component in Angular that shows a collection of products as images in a four-column grid.
<div class="row" ng-repeat="product in products track by $index" ng-if="$index % 4 == 0">
...
0
votes
0answers
9 views
AngularJS ui-route exit page
I need a possibility to ask the user if he/she is leaving a page.
I read that his would be a possibility but the event is fired when I enter the page and not when I leave the page.
onExit would work ...
0
votes
2answers
24 views
Using an Angular Modal as an Alert
I am still relatively new to AngularJs and I created a pretty generic Modal view and what I want to do is be able to globally use it in place of other current alert()'s however some of them will have ...
0
votes
1answer
22 views
angularjs loop that show in decrement order
how to run a loop in angular that start from 4 and run down to 1 check status value is = define value says alert
var total = 4;
for (var i = total; i >= 1; i--) {
if (total[i] = 1) {
...
-2
votes
0answers
19 views
JavaScript not accessible outside the ui-view
I have been trying to fix a problem that was previously discarded by someone with a similar problem on stack overflow at this link: Previous Problem and attempted solutions
I have up loaded the full ...
0
votes
2answers
36 views
angularjs How to make method call itself in controller
So, my question, is how to make controller method call itself( its defined in controller constructor ), for example:
this.getExportPath = function() {
setTimeout(function() {
...
0
votes
0answers
7 views
Grunt & Lineman - run task with parameters
Is it possible to parametrize already existing grunt task? F.e. there is a
pages task where I would like to add some additional actions based on my custom parameter. I've been trying to add something ...
-6
votes
1answer
56 views
Difference between AngularJS, EmberJS, ReactJS, BackboneJS, MeteorJS [on hold]
As I am in my final year of my engineering
Which would be best and easy to use framework for my final year project
I don't know exactly whats the difference between AngularJS, EmberJS, ReactJS, ...
0
votes
1answer
19 views
How to get the parent(/parent/parent/..etc) controller from inside a directive?
I have 3 directives, which structure might look something like this:
<my-component>
<my-items>
<my-item="item" ng-repeat="item in MyItems.items">
{{ ...
0
votes
1answer
12 views
how to avoid creating new empty row when an object is pushed to array
https://plnkr.co/edit/qUs7VH84QZGz0YlLJB70
The above link as my code when i click the save button i am getting saved and when i clcik cancel i am getting wrong output, and my empID is also shows only ...
0
votes
1answer
10 views
How to formating url conditionaly in `$stateProvider` angularJs
My $stateProvider provides :
$stateProvider.state('main.result', {
'url': '/result'
+ '/student/:studentId'
+ '/school/:schoolId'
...
-2
votes
0answers
9 views
Protractor - find a xpath of html inside the iframe
html > iframes > again html > body > p tag
I could not get correct xpath of this p>tag inside the iframe. I need send some text through my protractor code.
Help me find xpath.
0
votes
0answers
24 views
AngularJS - Struggling to pass value to factory
First i want to say that i'm fairly new to AngularJS, so it might be that i'm asking my question with some oddnes.
I'm trying to pass a string to a factory which in return gives me a result from my ...
0
votes
0answers
13 views
Mongoose query $max in $match
I am new to mongoose, I am facing a problem while trying to fetch some data using aggregate query.
One part of my auction schema is:
"_id" : ObjectId("56c58be1faaa402c0d4ae66f"),
...
1
vote
1answer
20 views
Add new chart.js when clicking a button, but get 'Cannot read property 'getContext' of null'
I like to add a new chart when clicking "add chart" button. The chart does not contain any data at the moment, but will be added later. Anyway, when I click on "add chart" I get "Cannot read property ...
0
votes
1answer
21 views
I can't display image generated as byte[]
My controller (ASP MVC):
public FileResult getTimelineChart(DateTime tsInic, DateTime tsEnd, string typeReq = "normal")
{
var rep = new AfterSalesWind.Models.OM_Repository();
...
3
votes
2answers
40 views
AngularJS variable not showing in html
Structure
statsController.js
(function (module) {
'use strict';
var statsController = function ($scope, $rootScope, $timeout, $routeParams, $location, $window, statsService) {
...
0
votes
0answers
4 views
Null Pointer exception while tweeting on twitter using spring mvc
I working on spring social currently on twitter, i am able connect to twitter a authorization also done.But after callback from twitter not able get access token.its giving me null pointer exception.
...
0
votes
0answers
16 views
angularjs code in wot working after grunt build
I am having this problem and unable to find any answer which fix the problem.
I have created small Angularjs code with grunt build system.
Bower.json
http://pastebin.com/8AScfd7d
Gruntfile.js
...
-1
votes
2answers
38 views
ng-show to hide a div on form submit
I have following markup in my view
<div ng-show="showTheForm" class='col-md-8'>
<form ng-submit='login()'action="http://localhost/test/signin.php" target='signin' method="post">
...
-2
votes
0answers
31 views
AngularJS taking JSON from nodejs API
I got some kind of strange question.
My nodejs api works with mongodb.
Angular is requesting data from nodejs by JSON.
I use Webstorm 11 to launch Angular App.
So, then I'm doing ng-repeat using that ...