Tagged Questions
0
votes
0answers
9 views
Angular JS (bootstrap UI), google maps not showing corectly
I am trying to add google map in twitter modal, only first time map are loaded, from second time map are not loaded into modal.
This is my directive.
appDirectives.directive('mapDirection', function ...
2
votes
2answers
23 views
Angularjs: select not updating when ng-model is updated
I've created the following example so you can see exactly what is happening: http://jsfiddle.net/8t2Ln/101/
The same thing happens if I use ng-options. I have a different reason for doing it this ...
1
vote
3answers
44 views
ng-repeat of JSON which have index on it
I have a json like this
{
"0": {
"Order_Id": "100000001",
"prodct_Status": "Pending",
"Price": "8.0000",
"date_created": "Jun 4, 2014 7:55:42 AM",
...
0
votes
1answer
17 views
Angular js simple ng-include not working
I'm new in angular js. I am trying to include simple html file in my page.
This is my code:
<!DOCTYPE html>
<html ng-app="">
<head>
</head>
<body ...
0
votes
0answers
31 views
navigation bar in single page app using angular
I've tried to find the answer to my problem with no luck. I'm new to web development and I've been trying to create a simple app using angularjs and bootstrap. There's no much content on my pages, ...
0
votes
1answer
23 views
How to properly modularize/organize the Javascript for a single page/controller in Angular?
I currently have a JS-heavy page with numerous animations, AJAX calls, and responsive features. The entire page is handled by a single angular controller. However, the problem now is my controller is ...
0
votes
1answer
35 views
How do I create an active (class) using angular.js
I am using [uikit] and like to utilize their active class on a link. I'd also like to use their icons simultaneously. 1 I am trying to implement this practice, fiddle however I get this error.
...
0
votes
2answers
43 views
ng-show needs to 'double evaluate'
Summary
I want to use, for ng-show, an object property that needs to be evaluated first.
Example
I have an array with lanOption (language) objects, that I'd like to show in a select element. ...
1
vote
0answers
11 views
Bind Service 'getter' or $watch changes and update manually - AngularJS
In my AngularJS app I'm using a service to store info that's being updated by a simple polling mechanism. Then, my controllers/directives are reading from that service, so that I can have that model ...
1
vote
0answers
24 views
Saving Data from form to database using AngularJS and php
I'm pretty new in angular.
i created a modal window to user share story and after that show it in body:
html
<button class="btn btn-primary new-story" ng-click="showPopup()">New ...
2
votes
1answer
34 views
Reverse Engineering AngularJS dependency Injection
I have learned in past about AngularJS dependency injection and it does it by calling the toString on the controller and then parsing the arguments and then calling the function with dependent ...
0
votes
0answers
15 views
chain async calls in a loop [duplicate]
I have an async function, implemented using angularjs, which is needed to be called again only after its promise is resolved. But if I use a for/foreach loop, the function will get called without ...
0
votes
0answers
9 views
Decorate ng-include with new controller
I'm using angular 1.1.5 and would like to decorate the ng-include directive with some new functionality. Part of the process would include adding a controller to the directive. (angular's ng-include ...
2
votes
0answers
12 views
e2e testing angularjs with protractor (protractor interactive mode brakes)
I am learning protractor for e2e testing angularjs and having some difficulties getting things going.
Since I am new to this framework, Im following some tutorials like ...
1
vote
0answers
16 views
Angular Bootstrap-Material - included on index but not being included in views
I'm including material-bootstrap scripts into the index.html of my Angular project, but they need to be manually re-included in the views to work.
This is strange, as for all other scripts inserted ...
0
votes
0answers
23 views
AngularJS Directive scope inheritance
I am trying to create a angular tree directive, here is the codes :
//** Tree constructor
var Tree = function() {
return {
restrict: 'EA',
replace: true,
template: "<ul>" +
...
1
vote
0answers
11 views
grunt serve:dist or grunt build causing MIME error for some bower_components
OK I've tried to make sure this question hasn't be already asked, and I couldn't find it...so hopefully this is a first time for this question. My issue deals with using angular-fullstack generator ...
0
votes
1answer
20 views
AngularJS : set parent controller $scope variable from child directive
I have a main controller EventCtrl that sets a formData variable on its scope.
This controller has a setEventObject method that overrides the formData object.
My purpose is to be able to call this ...
1
vote
0answers
18 views
Isolate scope - access scope attributes on element
When creating a directive with isolate scope, I can't access scope properties on the directive element (it's was not the case in angular 1.0.7, but in later versions (e.g. 1.2.17)).
...
-2
votes
0answers
23 views
Angularjs - sending data using https in angularjs
I am developing an mobile hybrid application using angular js-phonegap. I want to make a post call using https. is angularjs supporting https?
2
votes
3answers
24 views
Controller function after ngChange event in directive
I found some questions and examples, but they all use $scope, so far I am not using $scope in my application. I am trying to execute a controller function when a checkbox in a directive gets selected ...
0
votes
2answers
38 views
Why variable in $scope does not update?
Code in plunker.
I have two controllers. In first controller i have handler for button in my view
$scope.click = function () {
$location.url("/some");
console.log("clicked");
}
In handler i ...
0
votes
0answers
33 views
Removing attributes after app initialized
Is there any way to clean up the ng-* attributes after Angular initialization done and make HTML clean?
<div class="element-wp" ng-controller="SampleController as smCtrl"></div>
And ...
0
votes
0answers
12 views
Using formular in ui-view angular
I'm using a SinglePage-Application with one controller and three ui-view templates inside.
Here the HTML:
<div class="ng-scope" ng-controller="gameController">
<div ...
1
vote
1answer
51 views
In AngularJS, how does $scope get passed to scope?
I'm a bit confused with the use of $scope in controllers and of scope in directives. Please verify if my understanding is correct (and also provide some alternative ways how to do this).
Let's say I ...
0
votes
0answers
6 views
Angular-translate use() is not working
I am using the angular-translate directive.
I got from the server a message and i need to translate it.
For example:
Original sentence:
"<b>Dispatcher Number one $CREATED_NEW_INCIDENT$ ...
1
vote
1answer
29 views
Unable to use angular-summernote
I am using Summernote Angular directive. However, for some reason it is not working.
Problem:
It is unable to identify the summarnote function...
<summernote code="text"></summernote>
...
0
votes
1answer
26 views
Parsing RSS in JS without tierce service (vanilla JS or Angular)
I want to recover an RSS feed in JS.
I looked-up on the web a whole day, and found that nearly everybody use google feed API, Yahoo API, or a nodejs/php page for the computing and Jsonification. And ...
1
vote
1answer
40 views
Angularjs vs SEO vs pushState
After reading this thread I decided to use pushstate api in my angularjs application which is fully API-based (independent frontend and independent backend).
Here is my test site: ...
0
votes
2answers
39 views
AngularJs updating the URL for $http method dynamically
So I am trying to make an infinite scroll in Angular. The data items I want to show on my page are being served by a third party API and the URL looks like:
...
0
votes
0answers
17 views
Extending AngularJS plugins
For a project I had to add custom behavior to UI Bootstrap's Datepicker.
I had to add new key-value pairs to the datepickerConfig constant, had to do some simple changes in the DatepickerController, ...
-2
votes
3answers
44 views
Is it possible to make a function not return until a condition is met?
My problem is pretty simple and I think lot of programmers already must have faced this.
I am using angularjs and my javascript looks as follow:
controller('myController', function())
{
...
0
votes
1answer
26 views
How to access elements attributes from custom directive while keeping access to parent scope?
Essentially I want to be able to access the parent scope of the directive I have created, but I also want to be able to access the attributes that I have placed onto the element.
For example ...
1
vote
1answer
25 views
Is there a way to pass multiple functions to an AngularJS directive?
I am building a dropdown menu directive which allows you to optionally attach a function to each item in the list. I know how to pass one function per attribute into the directive, but I'm hoping that ...
1
vote
1answer
26 views
ngOptions compare by value
I have a webserver (node.js) that serves a JSON file containing a list of languages in the following format: { "en" : "English", "fr" : "French" } (and so on). And a separate JSON that is dictionary ...
1
vote
1answer
35 views
How to correctly develop this with Angular?
Hi this is my first question and I'm not really sure how to formulate it properly but here it goes:
I have this piece of code that correctly populates my container:
<div class="container" >
...
0
votes
1answer
22 views
ng-view or controller is not working
I'm trying to build a little web-app with AngularJS.
I have an index.html at root directory and 3 other html pages in html subdirectory
login.html
list.html
detail.html
At the first time, the ...
1
vote
1answer
23 views
How to use multiple classes with ng-class?
I have a layer with ng-class, and I need to use user.status with ng-class. and I have another class that I want to bind on the same layer.
<div ng-class="user.status, 'locked':(user.active === ...
0
votes
0answers
24 views
sockets.io using eronious websocket adress
So for some reason the web socket address is the head of my html in URL form and on load socket.io fails to connect. In the JavaScript console I get this output;
WebSocket connection to ...
0
votes
2answers
38 views
Sticky footer not sticking in AngularJS
Im working an angular site and im trying to implement a sticky footer across all views but the footer stops sticking when content exceeds the size of the window and the scrollbar appears. I've tried a ...
0
votes
1answer
51 views
How can I improve the performance of this directive that transitions opacity on scroll?
I've been working on improving this directive for a few hours now but can't seem to take it much further. Can anyone recommend further improvements?
.directive("scrollFade", function($window) {
...
0
votes
1answer
21 views
How can I disable a subset of buttons which were created using ng-repeat in AngularJS?
I am trying to build a quiz web application using AngularJS. The quiz questions are structured like this:
$scope.quiz = [
{
'q': 'For what period would archaeologists first begin to find ...
-2
votes
1answer
9 views
Directive in angularJS google maps?
i'm trying to create google maps markers that consume an API that gets all the data needed for the marker to be shown in the map, however, I also want to pass a directive for the popup content, but ...
0
votes
0answers
13 views
AngularJS - Find end of collapse animation
I have a simple problem with angularui bootstrap's collapse directive. I have a <select> menu. When the someone changes the menu, the content changes. However, I would like to add an animation ...
1
vote
0answers
18 views
Is it normal to have so many (such long) Layer Root #document paints?
I'm attempting to improve the performance of some scroll effects (fade when enter view, parallax). I'm a bit confused as to what is causing the issue when the Layer root is #document.
Is there a ...
2
votes
1answer
72 views
Single Page Application - Frontend independent of backend?
firstly, sorry for my english. It's not my native language.
I am a backend developer (or rather I wanna be and I'm still learning). I know PHP, Laravel, Symfony2 a little bit and the basics of Ruby ...
0
votes
0answers
33 views
nodeJS draw image into a canvas (not working)
I try to make a game with nodeJS in Back-end and AngularJS in Front-End but i have some problems.
I use express to configure routes in NodeJS and ngRoute in AngularJS. Each page have a view and a ...
0
votes
3answers
37 views
angular ng-show doesnt show data
I would like to filter dates. Current dates should be displayed and future dates hidden. But whenever I use ng-show everything gets shut down. See for yourself - here is fiddle
<div ...
0
votes
2answers
39 views
How do I get Angular.js to work with other libraries?
I am building a SPA; I am at the point where I have incorporated Routes/Templates. It works mostly, however two plugins don't seem to work, I suspect are due to my integration?
#1
When the page ...
1
vote
2answers
26 views
How can I do an window key event with Angularjs to set an angular variable
I don't know how I can intercept a keydown event of the window and set from there an angular var into the scope, of a specify controller.