0
votes
0answers
18 views

why contend show multiple time in angular while using ajax call?

I have two problem in my demo .I am making a pop over .I should open on icon click(here is used star icon).when i click star icon I am able to see pop up screen as I want but problem is that when I ...
0
votes
3answers
29 views

why my ajax success data is not display in angular js

I am trying to call ajax and get my HTML contend .But I want to show that data on tooltip/or pop over .I am getting the data on console I don't know why it showing black data tooltip it is showing ...
1
vote
1answer
33 views

why pop over display all time in angular?

I make a pop over using directive .But my popover display all time when i generate row dynamically .I need to show popover or tool only on icon click ? Now it is display without click and also ...
0
votes
0answers
37 views

Is there a way get width and height of child element in a directive in Angularjs

I am using an angularjs directive with a template to append divs to element. CSS automatically styles its width using max width. How do I find this width for further processing? I tried: for(var ...
0
votes
1answer
22 views

how to create star icon in each row angular?

I am trying to make star icon in each row.I am generating the row dynamically but I am able to generate rows but my star icon is visible on upper of top row why ..I need to show start icon in each row ...
0
votes
0answers
17 views

how to browse multiple images in angular js?

I am trying to browse multiple image and display image on screen .I googled it found dropzone.js.from this link http://www.dropzonejs.com/ .Now I am using this with angular.can we I import that file ...
0
votes
2answers
36 views

how to read json file in angular?

can you please tell how to how to read json file.I am able to read json file using controller .but there is way to read file from factory .When I use factory am getting null contend..why ? ...
1
vote
1answer
30 views

how to send parameter value in second view in angular?

can you please tell me how to display the value of parameter on second view ?Actually I make a form in which there is two field : name and class .when user press(after filling fields) add it generate ...
0
votes
2answers
53 views

how to store and retrieve data in anguar js?

can you please tell me how to store data permantly (example local storage)and retrieve data .I want to store data so that I get again .I am doing client side programing ? I google it it say there is ...
0
votes
2answers
27 views

Dynamically add ng-click in dropdown directive

I'm trying to dynamically add a ng-click to a bunch of li's that get dynamically created inside of a directive. The idea is to hide the select element and overlay it with a custom div with a ul and ...
0
votes
2answers
22 views

AngularJS - Directive in combination with Jquery inside directive

How to achieve that I 'activate' jQuery(element).scombobox() inside a directive which is not ready a <select>. To see more details please see the http://plnkr.co/edit And this is the html: ...
3
votes
3answers
72 views

AngularJS - Directives in a template

I'm trying to find the best approach for dynamically creating the sub-contents of an element created using a directive. To give a simple example, say I have directive that say creates a basic div ...
0
votes
0answers
18 views

AngularJS: Zeus Slider Doesn't activate after first visit to page

I have a ZeusSlider on a site I'm doing for a guy in AngularJS, it loads the first time I visit the homepage, but not if I go back to the home page. The script is firing, so I'm not sure why the ...
0
votes
2answers
41 views

Javascript inside script tag in an Angularjs template is not executed

I have a simple directive that displays three images. On mouse hover, it should switch from black and white to normal image. Below given is the code inside the directive. <div ...
0
votes
0answers
31 views

Input tagging for images

I am new in AngularJs. I am trying to build a project. I have a set of images added. When I click one image it should pop up and shud be able to add tags and delete it.The image shud populate in the ...
-1
votes
0answers
17 views

Override @page css style using angularjs directive

Hi I'm using angularjs to print different types of reports. I want some reports to have page numbers and others to not have it using @page in css. Since I only have one view file I cannot have ...
0
votes
1answer
37 views

how to load html in while making pop over?

I make a pop over .But I insert my pop over content in same html file.I want to load popover contend from another file and load the contend using templateURl :can we do that ? Here is my demo HTML: ...
0
votes
1answer
19 views

passing a parameter to a route from via a form submission in angular.js

i'm trying to implement a search based on certain parameters. i have the view /home and that consists a form. I won't it to redirect to /edit-customer:/customerId view with customer id. HTML, ...
0
votes
2answers
26 views

Angular Directive that adds select2 corrupts model?

I've created a table with ng-repeat and a directive to add a select2 ddl when you click on one of the cells. Everything works beautifully, the selected value is updated in the model (everything with ...
0
votes
0answers
37 views

How can JQuery AJAX requests trigger Angular ng-click directives

I am new to AngularJS so have been using a mixture of JQuery and Angular in a mobile application. I am occasionally running into a really weird bug, please bear with me as I try to explain it and feel ...
1
vote
1answer
27 views

AngularJS - issue when embedding the Youtube video url from directive to script

Here is working code PLUNKER in the controller public JsonResult videohome() { BaseController bc = new BaseController(); var video = (from n in bc.db.Video where ...
0
votes
1answer
25 views

How to make a controller fire a function in a directive (Controller take to directive)

in angular js i am trying to remove button when HTTP response returns success the HTTP call is made in a controller and the their is directive that removes ui. So how can i make the controller fires a ...
0
votes
1answer
26 views

Update directive after adding elements dynamically

What I want to do: Use directives to create custom elements, and be able to dynamically add those elements into the view at different times. The Problem: When I add custom elements dynamically into ...
0
votes
1answer
26 views

How do I use jquery in an angular directive

I use jWindowCrop.js to crop an image. But there is an error after I write the code in angular directive. If I use Jquery, the code is like this: HTML: <img class="crop_me" alt="" src="imageUrl" ...
0
votes
1answer
40 views

AngularJS ng-repeat jQuery find returns only one element

I am developing my first AngularJS app, and came across this problem with jQuery find function. Basically what I am trying to do, is that I have an custom HTML component . It contains list of buttons ...
3
votes
1answer
52 views

Extending AngularJS with jQuery like plugin

I am creating an AngularJS directive that would bind to a property on the controller scope which contains an 'htm'l string. The string is pulled from a database on the backend. I wish to append the ...
0
votes
2answers
45 views

Custom directive won't react to attribute changes

I'm currently building a modal directive that I can use to populate with some data tables. I have an attribute on the directive called modal-visible that will be a boolean value, defaulting at false. ...
-1
votes
2answers
53 views

Angular Js navigation issue

I am trying to implement simple login functionality and getting http://errors.angularjs.org/1.2.6/$rootScope/inprog?p0=%24digest exception. What does it mean? and how can i navigate to home page ...
1
vote
3answers
46 views

How to compare angular element with jQuery element

I need to implement click outside to hide dropdown inside directive, So I have this code: $(document).click(function(e) { var selector = $(e.target).closest('.time-selector'); if ...
1
vote
1answer
38 views

Selecting the children of an element in an AngularJS directive

I am attempting to bind an event handler to the children of the element in the link function in an AngularJS directive. Angular's documentation points me to jQuery's docs but it appears that the ...
0
votes
2answers
59 views

selecting all check boxes inside ng-grid

I found some jsfiddle jquery code and tried to combine it with my ng-grid to select all check boxes within the grid. However, it is not working. Here is a quickmock up of what i tried to do: ...
0
votes
4answers
68 views

angular.js listen for keypress as shortcut for button

My first ever angular application is a pretty basic survey tool. I have multiple choice questions, with a button for each answer and a basic function that logs each answer on button click like this: ...
0
votes
1answer
53 views

How to perform template manipulation after manual $compile?

I need to render a list of categories in a webapp I'm developing using AngularJS. Each category can have an array of subcategories. In order to render them, I created a recursive category directive ...
-1
votes
0answers
45 views

Angular custom element renders incorrect attribute value

This is my first Angular project. I am trying to create a custom element using "Angular JS". I create a <div> using a template and assign attributes for <div> using scope. The problem: I ...
1
vote
1answer
55 views

not able to get data using query function in select2 and angularjs

I am implementing jqury select2 in angularjs . Html code <input type="hidden" ng-model="multiselect" style="width:300px;" dev > id {{multiselect.id}} // want to print selected ...
1
vote
1answer
32 views

Wrong element height from a Directive with jQuery

I'm new to Angular and I'm trying to do some DOM calculations and manipulations from Directive using jQuery. What I've got however is wrong height of my element. In my case the element is something ...
0
votes
0answers
41 views

Directive that run after ng-repeat

I have similar problem with this one Calling a function when ng-repeat has finished but I have directive and ng-repeat inside. <my-dropdown> <li ng-repeat="item in ...
0
votes
0answers
35 views

Angular.js directive function return value in controller

I have a problem with directive. In my directive i have init() a video player manipulation plugin. Now in my html i have 2 buttons: playVideo markIn() I want that user click on markIn() button ...
0
votes
0answers
48 views

Angular Model with Directives

So I'm getting an error in my template with it not liking the ng-model="event.{{name}}". I was wondering how I can get the model to be ng-model="event.date_end". I am also wondering if this jquery ...
1
vote
2answers
50 views

angular - ng-if - how to callback after ng-if template has been rendered

in Angular, I need to call a function after an element with certain class has been loaded. Display of the element is controlled via ng-if='expr'. Value of $scope.expr is set after some ajax call has ...
1
vote
2answers
70 views

In AngularJS, how do I hide a DIV if Response Status to remote resource is 403 (Forbidden)

I have a social media comments box on my page that I am loading using Angular. Unfortunately, on some networks this box is blocked by network admins and an ugly error is displayed in its place. I ...
1
vote
1answer
50 views

Memory leak when manually compiling directives in Angular

I'm trying to manually compile a directive and add it to the DOM via JQuery. The directive is a simple div with an ngClick handler. No JQuery plugins are used in the directive itself (which seems to ...
1
vote
2answers
66 views

add slide animation for angular directives

I have dynamic loading htmls, I created a directive inorder to load the html template. main.html: <button class="btn" ng-click='toggle()'></button> <div class="anim"> ...
0
votes
0answers
31 views

Assigning ng-model to a custom jQuery element

I have a custom jQuery object called "combobutton", basically it's a button with lot of options. I am trying to bootstrap it with angular, it works pretty well to create the object: ...
0
votes
1answer
34 views

Changing the location of url angular JS

I had a common button in all the pages. Onclick of the button I need to open the html page with the slideToggle animation. Again on click of the same button the page should be in the same location ...
1
vote
1answer
18 views

AngularJS Help Text on Pristine (with focus)

I have a requirement that when a text box is pristine, and the user clicks inside it, that help text appears. <input name="Country" ng-model="Country"> <p ng-show="form.Country.$pristine ...
0
votes
1answer
50 views

dynamically change the path of href angular JS

I am trying to change the href value on click of it. This is what I have tried. HTML: <a href="#Page1">Demo</a> JS: angular.config(function ($routeProvider) { ...
0
votes
1answer
38 views

navigation between templates using directives angular JS

I am trying to navigate between different html templates on click of the button. I have main html and sub html. Main.html: <div id="main"></div> Sub.html: <div ...
0
votes
1answer
38 views

calling routeProvider inside click event using angular js

Is there any way to call my route provider or directive inside click event using angular js. I have a button on click of the button I need to use my directive, so based on the template url the page ...
-2
votes
1answer
42 views

Directive Angular JS

Have three html screens. Screen1.html: <button id="screenbtn"></button> Screen2.html: <div id="sctmpl"> <label>Label for screen two</label> </div> ...