Tagged Questions
0
votes
1answer
19 views
Textarea does not work in Angular but Input works fine
I am trying to create a directive for text area, where I can show the number of characters remaining and clear the whole text area, I don't know why it does not work for textarea, but it works fine ...
0
votes
2answers
31 views
AngularJS custom table directive
I have made a table with AngularJS all is working good pagination and sorting but i want to make it as a component so that in other pages it can be used. Right now i have made a factory which calls my ...
1
vote
1answer
36 views
Form Validation and disabled button
PLUNKER LINK
In above problem i have three radio buttons which let the user pay balance,minimum amount and other
amount.When user clicks on third radio button it opens up a div with input where user ...
0
votes
0answers
27 views
Angular-ui: Is resolve the only way to pass scope to an angular-ui modal?
I have been using angular-ui with angularjs for a while now and have encountered a problem and subsequently a solution, but I want to know if this is a good way to do things. The original issue was ...
0
votes
2answers
43 views
Ng-model does not update view
I have searched thoroughly everywhere and can't seem to find the solution to my problem.
I am trying to make a form to fill in to create new task object onto projects on the website like a scrum ...
0
votes
1answer
19 views
Child Scope not changing parent scope
I have two directives and am trying to filter a table based on a select box. I am using ui.bootstrap to create an accordion to hold the form. For some reason my form will not change the parent scope ...
0
votes
1answer
39 views
AngularJS ng-submit Not working inside accordion tags
Following form works correctly with validations when its not inside the accordion tags, but when its inside the accordion tags even the methods won't fire.
HTML
<div ng-controller="myCtrl">
...
1
vote
3answers
83 views
Not able to load $http.get - JSON data in ui tabset child tabs
I tried to load a dropdown with the response got from http post. But its failing to load on child tabs.
When i click next button from tab1. I make a post call and get a JSON back. Using the returned ...
2
votes
1answer
57 views
Tabset $rootScope scope not updating
I've a screen in below structure.
UserExperienceScreen
<tabset>
tab 1 - <controller> <form> - input fields - form submit - go to tab2
tab 2 - ...
0
votes
1answer
29 views
AngularUI Bootstrap Datepicker Setting a minimum date
I am running the latest AngularUI Bootstrap and I have a Datepicker which gets enabled when it is clicked open by a button.
I've tried and searched to get the answer of how to disable dates being ...
0
votes
1answer
56 views
How to pass data into an angular.js UI bootstrap modal controller
Using Angular.js UI bootstrap modal, how can I pass data into a modal popup's controller? I am currently trying:
var modalInstance = $modal.open({
templateUrl: 'partials/confirmation-modal.html',
...
0
votes
1answer
35 views
How to communicate between directive (tree component) and any other controller or directive in AngularJS app?
First of all, I have read so much info you all share about communication between controllers, that I'm now so confused about the BEST way to do it. I understand I should use service, but don't really ...
0
votes
2answers
58 views
How to change valid HTML tags that get rendered in ng-bind-html?
I have a text editor (textAngular) that I've modified to limit the number of valid HTML tags I can generate using that tool. Now, I want to only support a limited number of HTML elements (h3, h4, h5, ...
0
votes
1answer
40 views
$watch doesn't work when using the UI bootstrap(angular)
I have problem when I want to using my select part with the "tab" in the UI-bootstrap.
The view part:
請選擇全國稅基佔市價比例
<select class="btn btn-default" ...
0
votes
2answers
65 views
Angular scope variable available on html page but not controller?
I wonder if anyone could help me i have created a new directive so i can filter a dropdown list while loading data from a webServer. It all works fine, and i can write the values to the html page ...
0
votes
1answer
42 views
Problems with ng-router and anchor tab
MyApp.config([ '$routeProvider', function($routeProvider) {
$routeProvider
.when('/getAttributes', {
templateUrl : 'view/attributes.jsp',
controller : 'attributeController'
...
0
votes
0answers
51 views
Angular model is not updated when data is added
I'm using Angular UI-Bootstrap plugin to implement a Type Ahead. When a user selects a Type Ahead option from the list of options a Http Request is then triggered that fetches additional information ...
0
votes
1answer
71 views
Tabs directive not exposing an api in my scope
So I'm trying the Tabs directive and having some problems.
the structure is something like:
//routes
$routeProvider..when('/course/:id', {
controller: 'CourseCtrl',
templateUrl: ...
0
votes
1answer
47 views
Angular how to get route id at resolve block?
How can i get "pageid" inside resolve block?
For every url change i had to request the server, along with the "pageid"?
My code:
app.config(function($routeProvider){
$routeProvider
...
0
votes
1answer
70 views
Getting the Angular Typeahead to work with JSONP and JSON with properties
I've been pulling my hair out trying to get the $http.json() to properly return a result set of objects. I have locally stored examples of the same response and they work fine.
Can anyone look at ...
1
vote
1answer
43 views
AngularJS scope issue with a UI-modal window
I'm using the UI-bootstrap modal window in my Angular application and I'm running into some kind of a scope problem.
I've got a modal dialog which basically has two modes. At first, it displays a ...
0
votes
0answers
60 views
remove clicked item angularjs
I have a click event where I want to remove from scope an element with a given id
<a data-placement="bottom" ng-click='Off(product.productid)'><i class="fa fa-times"></i></a>
...
0
votes
1answer
188 views
Angular UI Bootstrap - Collapsing tab content
Using the AngularJS UI Directives for bootstrap, is there any way to collapse the tab content using the tag?
I have several tabs/pills with content, which will start collapsed (hidden). When any of ...
1
vote
1answer
126 views
Customize AngularJS Bootstrap Tooltip
How do I add custom placements/animations to an AngularJS/Bootstrap tooltip? I can do:
myApp.controller('TooltipCtrl', function ($scope) {
$scope.htmlTooltip = 'Here is a tooltip!';
});
And it ...
0
votes
0answers
35 views
2 filters in 1 Controller AngularJS
I just want to ask if it's possible to implement 2 filters in .controller.
I am using 2 Filters but only 1 filter works (If I remove the other filter, other filter is working -- vice versa).
Do I ...
0
votes
1answer
31 views
AngularJS: Tab panes vary in HTML markup, I want them to be created dynamically and filled with data provided by factory service
I'm building a tabbed interface for displaying posts from various social networks (timelines) but not all tabs will have the same HTML markup. My factory service is returning JSON response so that ...
2
votes
3answers
118 views
How to call controller function from directive?
how to call controller function from directive? or howto access directive ng-model from controller?
eg. I use angular ui bootstrap time component and when time change I need to notify calling function ...
0
votes
1answer
26 views
Need to $watch property from within an accordion (Angular-UI) but won't work
We're building a page with Angular, Angular-UI and UI-Bootstrap. The last one includes a directive for accordion, which simplifies a quite repetitive task of building up an accordion and an accordion ...
2
votes
1answer
765 views
Show and Hide Alert Using AngularUI Directives for Bootstrap
Am a newbie in the field of web design.
I came across bootstrap and later angularjs. I find them quite impressive.
I noticed that bootstrap comes with its own jquery libraries and angularjs uses its ...
0
votes
2answers
730 views
Angular UI Modal 2 Way Binding Not Working
I am adding an Angular UI Modal where I am passing the scope through to the Modal Window for 2 way binding. I used the resolve method to pass the scope value. Doing so works sort of works meaning when ...
0
votes
0answers
161 views
angular how to set attribute inside directive/template dynamically?
just started playing with Angular. I have several modal. same structure with header and footer. And the main part is a tree. I have data for three different tree.
I am using angular ui. and abn tree ...
2
votes
1answer
796 views
Date picker is not working in AngularJS (ng-grid) “editableCellTemplate”
columnDefs: [{
displayName: 'Date',
field: 'date',
editableCellTemplate: '<input type="text" ng-class="\'colt\' + col.index" ...
0
votes
0answers
71 views
Trying to get a string from Angular UI Modal via resolve object
I'm using the Angular UI modal directive: http://angular-ui.github.io/bootstrap/
I'm trying to pass a string from my modal open() function to my modal controller via the resolve object. I feel like ...
0
votes
1answer
51 views
Angular UI Bootstrap Modal, bind model changes immediately
I am trying to use Angular UI Bootstrap Modal. And I want to have the changes to the model to be shown immediately.
This is the controller:
$scope.testInputField = "";
$scope.showModal= function () ...
0
votes
1answer
126 views
fb comments href not working whith angularjs
I have installed below FB plugin on my page where I have specified data-href as below:
<div class="fb-comments" data-href="http://pingle.com/ngdemo" data-width="550px" data-numposts="5" ...
0
votes
2answers
152 views
Angular JS Root Scope
I am working with angular js at view layer. I need to use some global variable that will be used and modified by all the controllers method in my application:
var app = ...
1
vote
1answer
43 views
getting data back to controller from form
I have this form below. When I change the text fields, it shows the changes here
<div>
{{authform.email}}{{authform.password}}
</div>
but when I try to submit the form by ...
0
votes
1answer
80 views
Capture Posted Data from other website to AngularJs
I want to prepare secure application in AngularJs, which handle payment related common website(means we can get request from multiple website for payment in secure website).
Now issue I am facing.
...
3
votes
1answer
387 views
Access to form controller hidden due to angular ui tab isolated/inherited scope
I have a simple case:
<div ng-controller="myController">
<tabset>
<tab>
<form name="myForm"></form>
</tab>
</tabset>
</div>
and ...
0
votes
0answers
152 views
AngularJS : Dynamically bind and select value in angulajs directive with bootstrap popover
I am using bootstrap popover and when user hover; it will display popover with dropdown and calendar.
Inside link function of directive I am fetching list and binding dropdown.
Binding is done ...
0
votes
1answer
433 views
How to add active class inside header navigation directive inside a controller?
Since my app has a navigation menu repeated in several pages, I made a directive for it. Now, the .active class isn't applied to current page anymore. Do I need to put the controller inside the ...
0
votes
1answer
74 views
AngularJs Controller scope in tooltip form
I am trying to implement a form in a tooltip , that is dynamically inserted. Th form on submits calls the function in person controller and input field is mapped with scope model.
But the problem is ...
1
vote
1answer
495 views
Two way binding not working with a variable in a Modal (Subcontroller) with angularjs
Hello I got a list of products and I want people to select one of them and then a modal displays where they can enter extra info (a comment). I am using 'AngularJS' with 'Angular-UI' and ...
0
votes
1answer
101 views
$Scope in a nested Accoridon
I am using UI-Bootstrap with AngularJS and there is this simple Accordion Menu. I tryed to nest them. This works so far, but I can't get the scope of the nested.
ng-click also won't work, guess ...
2
votes
1answer
149 views
load modal using $http in angularjs
I want to load data in modal (ui.bootstrap.modal) with the help of angularJs.For Example i send request through post method and data retrieve successfully and now i want to load it into modal.Here is ...
0
votes
0answers
31 views
Update the UI from bootstrap modal
I've opened the modal using angular and bootstrap.js and its worling fine, but I want to update the UI after opening modal in bootstrap,
//need to add the header color OR update the ui
...
6
votes
3answers
3k views
Pass data to angular ui modal (lightbox effect)
Problem:
I want to create a modal lightbox using the Angular UI Bootstrap modal
Details:
I have built a photo grid using ng-repeat. Each repeated photo opens the modal using the open() method. I'm ...
2
votes
2answers
968 views
A directive to format phone number
I was wondering how to automatically format a number in an input field using an angularjs directive? When I type in an input field say 6042919283 I want it to be shown as 604-291-9283.
Thanks
2
votes
2answers
76 views
Model in a modal window in angularjs is empty
Hello I am using angularjs ui bootstrap and I have one text field in a modal window, which when I try to print it in alert window it is empty. Any reasons why? Here is a plunker of the code.
0
votes
2answers
627 views
Set checkboxes as checked using angularjs
I have some checkboxes .their value in database are 'Y' or 'N' as enum.for making updation i have to review all the checkboxes.how to view checkboxes as checked.
this is code for checkboxes
<label ...