1
vote
0answers
17 views

How to share data in between two controllers using angular JS?

I am new to angular JS and Javascript. I am working on a angularJS project and In project i am using several modules like Secreport -> secreportpage -> secchart. I passed data from mainCtrl to ...
1
vote
1answer
27 views

scope isn't updating on $apply use

I have a piece of $scope text that should update dynamically. <span ng-bind="user.balance"></span> after pushing a button, new value of balance is received and should be displayed here. ...
-1
votes
1answer
48 views

Using jade in angularjs, on include loosing the scope

I am using node with sails as my server. My problem is when I am trying to include a jade file using include I am not able to access the scope. Please go through the below code ...
0
votes
0answers
28 views

Angular Template does not call the <script>. Anyway around?

I want to call different script based on different template. It will be heavy to load all of the script in the index page. However, Angular Template does not execute tag. How should I go about ...
0
votes
2answers
53 views

How to escape an angular scope variable in a kiwi template

I have a scope variable (myVar) which is defined in MyController: angular.module('myApp.controllers').controller('MyController', ['$scope', function($scope) { $scope.myVar = 'whatsoever'; }]); ...
0
votes
2answers
126 views

$scope.$watch doesn't fire when I update from a directive

I have the following code snippets: HTML: <div data-filedrop data-ng-model="file"></div> Controller: $scope.$watch('file', function(newVal) { if (newVal) { ...
0
votes
0answers
21 views

Angular and socket.io in scopes and outside at same time

I am having 3 scopes: Chat Alert_Popups View's (dynamically changed to fit user's needs. 4 at this moment and will be probably more) I also have node.js backend with socket.io in it. The client ...
0
votes
1answer
126 views

Multiple Image Upload in Angular JS

My form will have two file input fields and other fields.The user will be sleecting two different types of files and putting in some data. On submit button I want to send both the files along with the ...
0
votes
1answer
27 views

AngularJS change multiple partials per request

I am new in node.js and Angular and I am creating a web application. At the moment I have the following design of my application - the screen is separeted by three columns - the left one is my menu ...
0
votes
2answers
198 views

angularjs socket.io emit function

Hi I'm building a web app that updates the user via socket.io how many tasks users have created on the website. I'm using socket.emit on the node.js side that will send a message to the angularjs ...
4
votes
1answer
2k views

Angularjs socket.io service

Hi I'm building an angularjs service that will use websockets via socket.io to communicate with backend (node.js). I found a snippet of code online but I don't quite understand how it works. ...
0
votes
0answers
392 views

Angular.js, get value from $scope in controller

Hello I have a question about $scope value....I wanted to get from $scope.user user id in controller but I dont know how to manage that. code: angular.module('test') .controller('GroupCtrl', ...
0
votes
1answer
193 views

angular-phonecat application using Node.js error 404 Not Found: /app/index.html

I am running http://docs.angularjs.org/tutorial/step_00 on my windows machine It was working fine till yesterday. Today it is giving following error 404 Not Found: /app/index.html
0
votes
1answer
298 views

inline editing with angular, inherited scopes - submit a form to the server

I am doing a form with inline editing. I found an example here: http://stackoverflow.com/a/16739227/169252 which I adapted to my needs. Here's some of the code (using nodejs, express and jade). The ...
1
vote
1answer
257 views

Updating $scope after $HTTP.post

new at this. I have 2 div's; When I use one to post new value into the server, the post action works fine. How do ensure this post updates the scope in the other div? (to update the div with the new ...