0
votes
1answer
12 views

How to use $compile in Angular to export HTML to external function

I have an issue where I can't send compiled HTML to an external function. I can do it if I do everything within the Angular app space. But when I send my compiled result to an external function it is ...
0
votes
1answer
19 views

angularjs <timer /> won't update

I have this angularjs controller angular.module('dashboardApp', ['timer']); function timingController($scope) { $scope.timerRunning = false; $scope.startTimer = function () { ...
1
vote
1answer
12 views

AngularJS: Limiting Autocomplete AngularJS Results

I am currently using: https://github.com/JustGoscha/allmighty-autocomplete github project to create autocomplete for my Angular JS project and it seems to be working except that it displays all the ...
0
votes
0answers
19 views

Tab content similar to $modal.open()

I like the way $modal.open() lets you pass in the scope, template, and controller. I would like to reuse this pattern for each of the tabs in a tabset. Is there a simple way to do this? Here is an ...
0
votes
1answer
29 views

Angular js ng-options not able to set the value

I have started playing around with angular js and here is the problem with ng-option. I have a below DOM structure, where i have used ng-option inside ng-repeat. And i'm declaring Main model in ...
0
votes
2answers
40 views

directive not working angularjs

The directive does not work from the controller. how to fix it? baseapp.directive('loading', function () { alert('loading'); return { restrict: 'E', replace: true, ...
0
votes
3answers
30 views

AngularJs: ngClass with multiple statements [duplicate]

I need to add two classes through one ng-class definition One looks like {true: 'bar', false: ''}[someVar === 'bar'] And the other looks like {foo: someOtherVar === 'foo'} If I join them ...
2
votes
0answers
17 views

testing directive in angularjs

I've created directive which create link for images if the src of the image wasn't available as following: var app = angular.module('myApp', []); app.directive('defaultImage', function() { ...
0
votes
0answers
10 views

ng-flow - no destination directory option

I am using ng-flow in my application and it works pretty well. Currently, the destination directory for the files being uploaded is set in my web.config and used within my webapi controller method. ...
0
votes
0answers
14 views

How do i iterate collection in directive where controller passes iteration template with ng-transclude?

I am trying to create a directive that takes collection size and column size as parameter, and creates a layout using them. As i want this directive to be generic, i want to keep the logic in ...
0
votes
3answers
36 views

angularjs - copy specific properties from one object to another

I have a controller like this: CheckoutController = function() { $scope.Profile = { firstname : 'Ruchir', middlename : 'Shakun', lastname : 'Gupta', email : ...
0
votes
1answer
27 views

AngularJS directive event before Controller

I need some help to force execute an event from a directive before the event of the controller. My scenario is the next: I have an input like that with a search method in my controller : <input ...
1
vote
1answer
23 views

Can I combine isolated scope and inherited scope?

is it possible to combine isolated scope and inherited scope? I have the following structure: <my-parent-directive> <my-directive ng-repeat="foo in foos" ...
0
votes
0answers
6 views

How ui-select2 load only specific number of records?

I'm loading data using ui-select2 in angular java script. But unable to load. I need to know about this.How ui-select2 work and why do we need ng-Model. what is transport and ajax calls? Thanks
0
votes
1answer
23 views

AngularJS - ng-switch in directive ignoring numeric values

I have a set of repeated ng-switch statements that i am trying to create a directive for. HTML: <td ng-repeat="status in myStatus"> <span ng-switch="status"> <span ...
0
votes
2answers
41 views

AngularJS - Using a directive to produce a <td> not working

I have a large set of repeated HTML for which i am trying to create a directive for. I have created directives in the past, mainly on DIV's, but this is the first time trying on a <table> / ...
-1
votes
0answers
11 views

Angularjs - Website is redirecting to login Page After submit request made through IE

I am developing an website using Angular JS. In the website, I am submitting an API request to server and after that reloading the same page using location.reload(). But it is redirecting to login ...
0
votes
1answer
26 views

Using AngularJS directive in Djangon

I am new to Django, and want to integrate AngularJS with Django. Djangular is installed and can be used. The basic directory structure is follows: mysite/app/Templates/app/index.html ...
0
votes
0answers
21 views

using ui.bootstrap causing issues with carousel

I am having issues with getting the carousel working properly. I used yeomen to scaffold the angular app. I am getting this error Error: [$compile:ctreq] Controller 'carousel', required by directive ...
0
votes
1answer
28 views

How should I integrate my directive and scope object in the view?

In my controller I have an array of objects. The object is called Well has a few properties, one of which is Location, which stores a string like "A1", "B4", "B13", etc. The location indicates a ...
0
votes
0answers
39 views

AngularJS Hide and Show modal content when clicking on a button in bootstrap modal

I was trying to create a twitter-bootstrap modal that contains dynamic contents with AngularJS. I have 2 parts in the modal content for now. When the modal is triggered and displayed on the screen, it ...
0
votes
1answer
12 views

how to write separate error method while calling calling webservice?

I am calling webservice in factory method .I am getting call back in same method .Mean If I got success it call same method . when it come error it call same method .I need to write separated method ...
0
votes
2answers
32 views

Get the template element in AngularJS directive

I am using AngularJS and I want to create a button that does an action only if the user is registered. If the user is not registered, it opens a signup tooltip with a specific message. Here is the ...
0
votes
0answers
13 views

slider for angular can not switch images

I am trying to create a slider for angular. I am using angular with yeoman and was following this article to create the slider http://www.sitepoint.com/creating-slide-show-plugin-angularjs/ My ...
0
votes
2answers
41 views

how to hide table after select of row in angular js?

I make a auto suggest using filter .It show when user type on input field .But when user select any row of table I need to hide that table .In my my case I am not able to hide the table can you please ...
0
votes
0answers
29 views

how to set code on input text field in angular js?

I make a auto complete .First I download my data from server and then write anything on text field it filter with my stationCode.I have two thing in my json array stationCode and stationName array ...
1
vote
1answer
14 views

Wrapper directive and class duplication

I just want to make a directive to wrap an element. I've tried with this one: .directive('wrap', function() { return { restrict: 'A', replace: true, transclude: 'element', template: ...
0
votes
1answer
20 views

how to hide and show list in angular js

I make a demo of filter.It is working fine.Now I need to make autocomplete with same code or logic .My list is display whole time when I run the project.I need to show list when user enter text in ...
0
votes
1answer
25 views

AngularJS 'scrollTop' equivalent?

I'm looking to implement something similar to this in an AngularJS directive: https://github.com/geniuscarrier/scrollToTop/blob/master/jquery.scrollToTop.js It's fairly straightforward, when you are ...
0
votes
0answers
14 views

ui-select only work in first tab in tabset

Code here <tabset justified="true"> <tab heading="tab1" select="switchTier1Tab('qe')"> tab1content </tab> ...
2
votes
1answer
67 views

Why won't my directive interpolate its scope variable?

I tried to write a directive to replace a CSS link with an embedded style definition. Here is a working version. Now, I would like to achieve that functionality with interpolation, so I do not have ...
2
votes
1answer
24 views

Is there a built-in way in Angular to apply a full filter expression?

A question in a nutshell: How can I get a filter expression "| filter1:arg1:arg2 | filter2:arg1" that would be typically specified in an Angular expression, like so: {{ model | filter1:arg1:arg2 | ...
0
votes
0answers
15 views

Integrate jquery masked input as angularjs directive

I wish to use masking in form inputs. I have created a directive uiMask which takes predefined masking formats like DoB or zip. In order to initiate masking, I apply the masking in directive's link ...
0
votes
1answer
39 views

How to correctly wrap a one time jquery call inside an AngularJS directive?

I have a simple directive which transforms <a caracteristic="caracteristics.strength"></a> into a more elaborated tag with correct values : template.html <a ng-href="regles#{{ ...
2
votes
1answer
47 views

Angular “controller as syntax”, passing variables, and isolate scoping

I was just doing this tutorial which makes a lot of sense - http://onehungrymind.com/angularjs-sticky-notes-pt-2-isolated-scope/. A fiddle provided is here: http://jsfiddle.net/simpulton/SPMfT/ It ...
0
votes
1answer
34 views

When does ngClass evaluate functions / How to mimic this in custom directive

I'm hoping someone can offer some Angular insight that I am sorely lacking right now. ngClass allows you to add/remove a class depending on some function. For example, if I write: <div ...
-2
votes
1answer
14 views

Angular JS - Route provider not working

Help me with this plunk http://plnkr.co/edit/9WSWSgp55j614tBd2qbJ?p=previewGo to above plunk and check it out pls am getting blank screen when using routing but its working fine when its not
1
vote
0answers
12 views

Getting ngModelController of the input

I need to access ngModelController of input element to check is it dirty or pristine. I've managed to do it with directive which grabs ngModel of input to data object associated with element, making ...
1
vote
2answers
49 views

AngularJS: How to implement a directive that outputs its markup?

DEMO Imagine I have some markup, e.g.: <my-input model="data.firstName"></my-input> Now, I would like to create a my-markup directive that will add a button to show/hide its markup. ...
1
vote
1answer
35 views

Angularjs ng-table apply directive to dynamic header

I'm using the ng-table with dynamic headers. I'm trying to add a jQuery colResize wrapper directive to my table. My problem is that the directive kicks in long before the thead is in place so the ...
0
votes
1answer
30 views

how to add a table row as a template using angular js

I would like to add a row dynamically to a table. I would like to reuse the row in a few tables. I tried doing this with a directive and by using ng-include but neither option worked as I expected. ...
0
votes
2answers
34 views

How to refresh page with angular.js view?

I have a homepage link that loads /register html page. But when I change css on the /register page and want to see it I have to go back to my localhost and then click the link again so the page loads ...
0
votes
2answers
26 views

select option when the model is updated before ng-options is loaded

I have a "state-select" directive that populates a select element with a list of states based on a countryCode. The directive watches for changes on countryCode to update the attribute provided to ...
3
votes
1answer
25 views

How to keep cents in a Angular math function

I have a math function that adds two input fields and puts the value in a third. I also have a filter that adds the cents to the input. you will see in the plunkr that the filter is not being applied ...
-1
votes
1answer
26 views

Angular, ng-init doesn't initialize

Trying to initial a text box with ng-init but the text box is always blank? <form ng-app="TheApp" ng-init="email='[email protected]'"> <div> <label>email: </label> ...
0
votes
2answers
18 views

How to access AngularJS Directive attributes when inside & outside an ng-repeat?

Have the following attribute directive. angular.module('app.directives.auctionItemCard', []) .directive('auctionItemCard', function() { return { restict: 'A', ...
0
votes
1answer
12 views

angular js using directives the correct way

I am new to Angularjs and I need some help. What I want to achieve is an inline editable text That will switch between text and an input box So onClick text will switch out with an input box give it ...
0
votes
0answers
28 views

Select tag not changing to selected value when being watched

I'm having an issue with the select tag's title not changing when a new value is selected. I have another div which only appears when a certain value is chosen from the select. register.html ...
0
votes
1answer
20 views

Required angular directive not found

I am trying to understand the execution of link function in angular directives. However, I am stuck in a very simple setup. Following is the html code: <!doctype html> <html ...
0
votes
1answer
16 views

Angularjs: Form validation & debounce / blur

I create a form based on the AngularJS's documentation (https://docs.angularjs.org/guide/forms). The JSFiddle of my issue is here: http://jsfiddle.net/HB7LU/7197/ Making a basic "user registration ...