1
vote
1answer
21 views

angularjs scope not accessable in directive

I am trying to load a chart using angularjs directive. I want to load the chart after data comes from server response. But scope is empty. My code is <div class="span4" ui-if="loadingIsDone"> ...
0
votes
0answers
16 views

Preview Image before uploading Angularjs

Hi I was wondering if there was a way to preview images before I upload them using angularjs? I am using the this library. https://github.com/danialfarid/angular-file-upload Thanks. Here is my ...
0
votes
1answer
20 views

AngularJS template bindings don't update on data change, but do update when I read the model

I created a custom directive with an isolate scope that uses two-way data binding back to the parent scope. The scope/bindings all appear to be working correctly, but the template/view is not ...
0
votes
1answer
16 views

set focus of textbox used in directive template

I am using directive to display textbox based on data model. If data mode is in edit state then I display textbox. I want that textbox focus should be set when it is rendered. I tried however couldn't ...
0
votes
1answer
13 views

Are custom angular directives always evaluated?

Is there a directive that can disable a custom directive or do I have to change my custom directive to include a "disabled" state? Something like: <div mycustomdirective="doSomething()" ...
0
votes
2answers
15 views

Cannot read value of scope/elm in angularjs

I'm trying to fire an event when user finish typing into input field and I'm stuck at reading the value which was entered :( Here is my code: js var subtitlesApp = angular.module('subtitlesApp', ...
0
votes
0answers
25 views

How to build a widget to embed in third-party websites using AngularJs?

I would like to create a angularjs widget that can be embedded in third-party websites with minimal code such as <script src=mywidget.js type=...></script> <div ...
2
votes
1answer
28 views

AngularJS directive attribute not rendering value when observed

I'm having trouble retrieving the value of an attribute passed in to a directive. My understanding of how directives work probably has something to do with this but it's my assumption that this is a ...
0
votes
2answers
25 views

Angular JS observe on directive attribute

How can angular js watch attributes on custom directive in order to accept angular values to be bind Here is what I have so far: <tile title="Sleep Duration" ...
0
votes
1answer
26 views

Angular event on property change happening out of order

Background: I have a hint box that shows up on focus that changes size as error/info messages change. For example, on blur the box will remain but add error message if validation of the field fails. ...
0
votes
1answer
23 views

Angular - Directive reflecting ngModel array

This is piggy-backing a little off an earlier question. I have been trying to work with directives and data from a model/array My model looks something like this: $scope.testModel = { ...
1
vote
1answer
17 views

Angular tries to use/access a function (assigned to this) which hasn't been used within directive's return object

Here is the exact directive I am using: 'use strict'; angular.module('App') .directive('aView', function ($stateParams) { this.link = function(scope, template, directiveAttrs){ ...
0
votes
1answer
23 views

Angular - Directive hides input

I have a custom directive: .directive('myDirective', function() { return { scope: {ngModel:'='}, link: function(scope, element) { element.bind("keyup", ...
0
votes
1answer
23 views

how will i change the color of a font based on a value using angularjs directives?

I would like to create a directive that can change the font color of the text displayed on a span based on some value that is not displayed. I have an array: $scope.due =[{somedate: ...
0
votes
1answer
30 views

Is there a way to ensure directive scope is resolved before using it?

I'm writing an element-level directive that has a number of attributes on it. These attributes are then put into an isolate scope using the '@' modifier. The directive is used on a page that ...

15 30 50 per page