0
votes
0answers
17 views

How to create a “back” button to an edit form for AngularJS Datatables using a form directive

I created a grid using AngularJS Datatables and added two more buttons "edit" and "delete" in the last column. How does the grid/table is rendered? HTML <!-- Required CSS and JS --> <link ...
0
votes
1answer
26 views

Angular directive match password and validation

Hello guys i have problem i have directive match password return{ restrict: 'A', controller: function ($scope) { $scope.confirmed = false; $scope.doConfirm = function (values) { ...
0
votes
1answer
31 views

Simple Angular Directive within another Directive - how pass value to controller scope

Edit: I have added the details as well. I could do with some help with passing the value selected in my directive to my controller $scope. I have a very basic directive that I want to place within ...
0
votes
1answer
49 views

can not access element in directive template template

I want to access DOM object of template from link function in a directive but I can't. I want to access this canvas object to change it after some file upload MakeApp .directive('...
2
votes
3answers
45 views

Why ng-click not working when i got in $scope.variabel?

I have problem, my ngclick not working because i got in $scope.variabel controller. <a id="data_table" ng-click="{{ item.target }}" I think target can use in ng-click when we call {{ item.target ...
-1
votes
0answers
9 views

xml tree using angular

Do we have any editor to display the XML content in web Application XML using angular
0
votes
0answers
24 views

How to nest repeated directives in parent directive and get parent scope?

Trying to put radio buttons in radio group, would like to give groupName to buttons from parent, seems like because the transclusion happens, I have to use scope.$parent.$parent? angular.module('apim....
0
votes
1answer
24 views

How do I create a popup Angular component with parameters?

How do I create a popup Angular 1.6 component that accepts several parameters and will be used in several pages. One of the parameters will be dynamic -- set in the ng-click that opens the popup. The ...
0
votes
3answers
29 views

Angular JS : Post call is going in Success as well as Error Method

I know I amy look like foolish while asking this, but I am not able to figure this out. I have written a service which handles the post call to the server. $q service is returning the promise back ...
0
votes
0answers
8 views

Why video.ontimeupdate is not call when changing pages? Angular

I have 2 pages. On first page I have a simple HTML video tag, and on the other I have a youtube video. when I go to second page and then go back t the first page, the video.ontimeupdate doesn't work ...
0
votes
1answer
36 views

AngularJS Custom directive How to access object value?

Here is my html code where i am calling directive <div ng-repeat="feat in templateAttributes track by $index"> <md-input-container flex="50"> <...
0
votes
1answer
16 views

Simultaneously accessing textbox and select using angularjs

I want to create a directive where when the user type '@u' displaying users or '@c'displaying countries in the text area , I want to display the select options below the text-area based on the keyword ...
1
vote
1answer
36 views

AngularJS: Injecting $timeout not available in directive

I am injecting $timeout into the following directive but it is not defined. The following code prints undefined to the console and throws TypeError: $timeout is not a function; export default class ...
0
votes
1answer
29 views

Angular directive only applying to last element of an ng-repeat

In my Angular project, I tried creating a directive that will resize the element's width dynamically when the browser window is resized. To test it out, I created the code below: (function() { '...
-1
votes
2answers
29 views

Triggering form validation programmatically in angular-js

I am using a custom directive to submit a form programmatically however no form validation is applied before submitting the form. I have called $setDirty() on the form field and $setSubmitted() on the ...
0
votes
1answer
17 views

How can I use the ng-non-bindable directive in an Ionic 2 app?

I'm trying to write text which includes single and double braces inside a <p> tag. I've tried modifying it to <p ng-non-bindable> but the angular compiler still picks up the braces. ...
0
votes
1answer
8 views

Angular-CLI not creating all the default component

creating a new module using angular-cli it generate only the xx.module.ts How how to generate the rest of the default files like module1.component.ts module1.component.html module1....
0
votes
1answer
43 views

$filter is not defined in directive function

I am just getting back into Angular and I am at a loss. I'm utilizing a datagrid directive I had used in a previous project, and all I'm trying to do is get it to show simple data. Here is my module ...
0
votes
1answer
40 views

How to call a controller function, inside a directive link function using '&' with a parameter?

I'm trying to pass a parameter into a function, inside of a directive link function, similar to this question: Angular: calling controller function inside a directive link function using & ...
0
votes
1answer
13 views

Data not being populated in drop down from JSON Response from REST in Angular js

I'm getting a JSON value from one WebService like this "electricity": { "selectedElectricityBoard":"ABCD", "electrictyConsumerNumber":"12345", "isElectricityBoardChecked":true ...
0
votes
1answer
21 views

Why directive is not working after page change? Angular

I have a simple youtube directive on one page and works fine. However, if i go to page 2 and then come back, the player doesn't show up any more. Am I missing something here, or I simply ...
2
votes
1answer
25 views

compile directive inside another directive in ng-if

I have created an example in plnkr: http://plnkr.co/edit/kcclSc10nPB8Qzm3qr7s?p=preview there you can see that there is a directive that is adding another directive in the compile function, which ...
-2
votes
0answers
22 views

How to use masonry in angular js custom diretive [on hold]

I am trying to use the functionality of masonry in my project, with using angular only. I tried many directives but they all need me to use node modules and I don't know how to use both. The problem ...
0
votes
1answer
24 views

AngularJS: HTML partials ng-if not updating when $scope.loggedInUser is updated

I am new to the AngularJS community and was hoping someone could help me with the following issue. I have created a light CMS system based on an incomplete tutorial and have filled in some of the ...
0
votes
0answers
30 views

Compiling in controller returns empty html without data in it

I am working on angular. I was trying to compile an HTML, but at the end, it only returns an empty HTML structure without any data in it. but when I console.log "element[0]". I am able to see the ...
0
votes
0answers
20 views

ng-options in a custom directive in Angular 1.x

I would like to add funcionability to the tag in Angular 1 to support dependent combo boxes. I mean, From <select ng-model="selectedCountry" ng-options="c.id as c.name for c in ...
0
votes
1answer
37 views

display angular UI grid and values based on the user input

I am working on angularjs application and as a newbie facing many issues. I have two angular UI grids. Based on the user input in the text fields it has to display the values in the UI grid. Having ...
-2
votes
0answers
29 views

How to convert the below Jquery to angular inside run block

Jquery to angular conversion needed inside run block. html <body class="modal-open" style="padding-right: 17px;"> Js $('body').removeClass('modal-open').removeAttr('style');
0
votes
1answer
29 views

Angular- In directive, element validation always undefined

I have a form , which is having few input fields. I want to display error message in popover when user focus out the input field or click on submit button. I created one directive which adds the ...
-1
votes
1answer
24 views

element.focus is not a function in Angular custom directive

I'm having a problem with a custom directive which I wrote to focus on a textbox on button click. Here when the button has clicked the value in the text box is removed. The thing is in the console it ...
0
votes
2answers
41 views

Angular JS ng-repeat not working as expected

I have a controller like this: controller('BreadCrumbs', ['$scope','crumble','$rootScope', function ($scope,crumble,$rootScope) { function init (){ $scope.ui={}; $scope.ui....
1
vote
2answers
39 views

based on the input given in textboxes and submitted, show the angular UI grid

I am working on angularjs application. As i am new to this framework having hard time to get the solution. Any suggestions would be very helpful. My requirement is to display the angular UI-grid ...
0
votes
0answers
15 views

Unable to set custom validation error in angularjs directive with angular ui bootstrap datepicker popup

I have created a custom angularjs datepicker popup directive. It is just a wrapper over the angular ui bootstrap datepicker popup. When i set the max-date/min-date in the datepicker options, the ...
0
votes
0answers
8 views

Using angular-material chips , mail cc and bcc functionality

want to achieve the functionality as gmail compose mail cc and bcc. Achieved chips using md-chips, but not cc and bcc. please help me.. !http://imgur.com/a/wzStQ Thanks in Advance
0
votes
1answer
22 views

How to pass dynamic components to a container component in Angular 1

Is there a way to pass components defined at run time to render inside of another component in Angular 1? That's a fairly common pattern for React libraries, but I can't figure out how that would ...
1
vote
4answers
37 views

how to get text area empty automatically when user click anywhere on the page. Angularjs, Javascript?

I'm working in angularjs project, I have one text area which gives me some result on search.I want my text area to be cleared whenever i click anywhere on the page.My code is <input type="text" ng-...
0
votes
1answer
21 views

angularjs nested cascading directive for dropdown

I want to create a cascading dropdown directive . <my-dropdown label="states" url="http://statelisturl"> <my-dropdown label="cities" url="http://citylisturl"> </my-dropdown&...
0
votes
1answer
26 views

Manipulate dom with AngularJS

I want to convert DOM mean the following list to a dropdown list of menu. in DOM through AngularJS <div class="maincontent"> <my-directive></my-directive> <ul>...
1
vote
2answers
37 views

dynamic ng-model using multiple dropdown and ng-reapeat

Hello every one i have a language multiple selection input. On select language i need to open textboxes of selected language with dynamic ng-model. this is my json and code. [{"id":"1","lang":"...
0
votes
1answer
28 views

using directive in angularjs for getting filepath

I am creating a web app in angularjs but i am not very familiar with directives in angularjs i want to get the file path of the selected file by a particular user <script> var myApp = angular....
0
votes
0answers
24 views

angular 1.6: ng-blur and ng-focus does not work on elements in ng-repeat

So I am working using angular 1.6 on an application. Using ng-click and ng-focus has worked fine in the past on different elements. However, I found I am having trouble getting it to work within ng-...
0
votes
1answer
28 views

Angular.JS ng-Repeat in directive runs twice

https://plnkr.co/edit/WzLez5XElbOHRTvXEJFc?p=preview function DirectiveController($scope, $element) { $scope.Array = ["a", "b"]; $scope.me = function() { console.log("i ran"); };...
2
votes
1answer
51 views

Update element created by directive on change of controller varibale

I am trying to create an angular app where user can create a dynamic form. In this user can create form fields and save form metadata, which is then used to display actual form. There is live preview, ...
0
votes
1answer
33 views

Can not change datepicker parameter on change in another datepicker?

I have two datepicker inside a form. When the user select the first date, the min and max date of the second datepicker should be updated( one year from the selection). But in my case the min and max ...
2
votes
1answer
37 views

How to enable button Angular JS if file was selected?

I use this library for uploading files in Angular JS. How can I enable submit button if file was selected? I can get access to object: var uploader = new FileUploader({})
0
votes
0answers
35 views

$watch does not fire when changing $scope property

I have doubts I've done something wrong or I just do not understand. Whats wrong in my directive? app.directive('sideMenu', function() { return { restrict: 'E', templateUrl : '/...
0
votes
1answer
29 views

ng-option and ng-repeat, linking up selected object

<select size="20" style="width: 585px" ng-disabled="disableControls" ng-model="ComputePermissionsService.selectedPermission"> <option ng-repeat="permission in ComputePermissionsService....
0
votes
2answers
52 views

Filter with ng model not working angular js

I have tried to implement a filter on angular tree with all corresponding nodes opening while filtering. Could you help me please ? Here is the fiddle : http://jsfiddle.net/6c1mg3od/1/ What I have ...
1
vote
1answer
17 views

Inclusion of Angular directive files into index.html prevents running of one directive

I included two simple directives to my index Html file. But weirdly the file I included above is not working. If I add the files to index.html individually, each file is working well. My index Html ...
-2
votes
2answers
28 views

Changing the CSS of a div in AngularJS directive

I have a problem I have created a directive which is doing ng-repeat on an array of objects ---Showing the value on gui------ Now I want that if I click on any div of this repeat that particular div'...