new

Stack Overflow for Teams

A private, secure home for your team's questions and answers.

Learn more
0
votes
0answers
38 views

AngularJS Controller resetting $scope variables after setting

I am trying to implement a simple datepicker using the akveo AngularJS project. When I change my date,I am setting a $scope variable from on-change function. When I debug, I can see that the correct ...
0
votes
0answers
20 views

How to include an angular-ui/ui-bootstrap directive within my directive

Using AngularJS ~1.5, I'd like the outer scope (my directive) to be available to the inner directive. Assume a simple template like: <h1>{{info.title}}</h1> <uib-something ngModel="...
-1
votes
1answer
33 views

Broadcast to directive from modal

I am using angularjs directive which contains some methods with ajax call in broadcasting event. I am passing data as parameter to directive from different controllers ,some data I am passing from ...
1
vote
1answer
70 views

Save Form data from Popover in Angularjs

var App = angular.module('myApp', []); App.controller('myPopoverCtrl', function($scope){ $scope.myPopover = { isOpen: false, open: function open() { $...
0
votes
1answer
26 views

angularjs $uimodal needs to be updated

i have a peculiar scenario, where my data gets updated even after a modal window is open. i am supposed to refresh the data on the modal pop-up by adding a new item on the modal popup. Here is the ...
0
votes
0answers
249 views

How to invoke a modal from a controller in angularjs / ui-bootstrap?

I am trying to display a modal (Note view) from a controller (Details controller). I have separate controllers tied to each view. The Details view has a list of radio buttons and upon selecting a ...
0
votes
0answers
96 views

uib-typeahead is not working

I have implement uib-typeahead for tons of time but i am clueless why it is not working i want to get item name in the uib-typeahead my code here is like this $scope.suggestTestbySpeciality = ...
0
votes
1answer
941 views

Bootstrap select picker with ng-repeat is not working for JSON object

I was using Bootstrap select for search and multiple select but the problem is when i am using $scope object in ng-repeat for options it's not working . I have given my codes below . <select name="...
1
vote
1answer
108 views

Firing event from dynamically opened controller to parent controller in Angular js

I am developing an Web Application using Angular JS. I am new to Angular JS. in my app I am using bootstrap.ui JS for Angular js. But I am having a problem with bootstrap modal controller. I open the ...
0
votes
1answer
199 views

AngularJs Table not updated after Create/Delete/update

If I Create/Update/Delete Values in my Array the ng-table is not Updating the Data. I need to do a window.location.reload() for that but thats not very "beautifull". Shouldnt in Angularjs through 2Way ...
0
votes
1answer
1k views

how to select default value of ui select?

could you please tell me how to set default value in UI -select . here is my code http://plnkr.co/edit/tCrEM4oC9iMSYZffbEAX?p=preview I want "Adrian" should select as by default .could you please tell ...
2
votes
2answers
3k views

how to select value in UI select value?

could you please tell me how to select value in UI-select value ? Actually when user select any name I want to select age of item .Here is my code http://plnkr.co/edit/InxOyQRjrlrDJtx2VuzI?p=preview ...
0
votes
0answers
278 views

angular UI-Bootstrap modal not binding with controller

I create ng-template and bind it with controller and this template pass through ui-bootstrap modal. code :- vm.uploadFile = function () { var uploadModal = $uibModal.open({ ...
9
votes
2answers
12k views

Passing data through open modal function Angular uibModal

I'm trying to figure out how to pass unit_number into the modal when it pops up. I'm pretty new with Angular and I'm a little confused with what resolve: and group: are doing and how I can include the ...
0
votes
3answers
757 views

$scope variable not changing in controller when changed using directive

I tried in all ways (keeping the scope to false, etc but not able to change my scope in controller),am I missing something. directive: angular.module("ui.materialize.inputfield", []) ....
0
votes
1answer
811 views

angular bootstrap accordion is-open scope

I am trying to figure out how to close an accordion group from a button within the group.. seems like it should be easy.. but looks to be something with the scope being defined only within the group ...
1
vote
2answers
135 views

Link function of Directive is not being called

I have a scenario where I need to show a pie-chart in a popup modal (used ui-bootstrap modal). I used c3.js for my pie-chart requirement (inside a directive). The pie-chart is not loading inside the ...
2
votes
1answer
866 views

angular custom directive two way binding not working inside uib modal

I'm having difficulties with a custom directive two way binding inside uib-modal. The directive gets the model variable from the uib-modal scope, but on change, the model in the uib-modal isn't ...
1
vote
1answer
3k views

Unable to set date in angularUI datepicker

Following is the code in my member edit page(member-edit.html), in which I am getting the date for marriage anniversary and joining date from an API and setting it in vm.member.marriage_anniversary &...
2
votes
1answer
398 views

how to use angular expression value as an attribute for html element

I have a scenario where i need to apply different directives (attribute) to a DIV inside a Angular bootstrap Modal at runtime (button click). I would know the name of the directive to apply. But i am ...
0
votes
2answers
1k views

AngularJS Ui-Bootstrap ng-bind-html scope resolution of $modal

I'm attempting to open an AngularJS modal and pass in as a parameter HTML form controls. So far I've managed to learn how to pass in and receive back values so long as they are tied to hard coded ...
1
vote
1answer
788 views

Pass variable to UI-bootstrap modal without using $scope

Since I am a beginner using AngularJS the $scope approach to pass data between different controllers and (in my case) a modal drives me crazy. Due to that reason, I googled around the web and found an ...
2
votes
2answers
840 views

Angular UI Bootstrap Modal Form Scope “undefined”

i have a uibootstrap accordion "angular_accordion.html" with a button opening modal "new_project_modal.html", values entered in modal are shown in view "angular_tabel.html" in twitter bootstrap panel ...
1
vote
0answers
145 views

Pass generic resolve object to ui-bootstrap modal via modalService

I've been following this blog post about building a generic modal service. This part has gone well so far (I won't copy the service code in here). I'm trying to build a modal that contains several ...
0
votes
2answers
249 views

Angular Factory Object binded to Scope not appearing in Modal

I'm trying to pass information about a listing that appears on the show page to the modal on that page. I successfully created the factory service which returns me an object. angular.module('...
2
votes
0answers
988 views

Extending Scope function to Directive in Angular 1.4

I am trying to extend the angular-ui.github.io/bootstrap/ datepicker and it seems not to work. angular.module('myApp', [ 'ui.bootstrap' ]) .config(function($provide) { $provide.decorator('...
1
vote
1answer
1k views

I can't access the properties of an object even though I can see it's contents

This code used to work just fine when I was using bootstrap's way of dropdown menus.. now that I switched to conventional I dont know why I'm getting this problem. Why can't I access the properties?? ...
2
votes
0answers
344 views

populate ng-bind-html from templateURL or any html template source

I have tabs controller: $scope.tabs = [ { template:'modules/order/views/estimates-list.html', heading: 'View Estimates', route:'default.order.info.estimates.list', active:false }, { template:'...
0
votes
3answers
1k views

ui.bootstrap.datepicker is-open not working second time

I am using ui.bootstrap.datepicker , for first click it is working and second click onwards it is not working. I used many options like is-open='$parent.isOpen' and ng-model="$parent.date =" and $...
2
votes
3answers
5k views

Angular UI bootstrap pagination not working inside ui.bootstrap.tabs

Angular UI bootstrap gives awesome solutions. Very unfortunately Pagination (ui.bootstrap.pagination) does not working inside Tabs (ui.bootstrap.tabs) DEMO http://plnkr.co/edit/mLBkDwEVY6SIh5oCyy0K?...
0
votes
2answers
521 views

AngularJS : How can I dynamically reference a directive during ng-repeat?

Here is a plunkr showing what I am attempting I have a tabset, which is defined as individual tabs, each with their own directive. <div class="container" ng-controller='fruitController'> ...
1
vote
1answer
407 views

Angular: default config for component

how can I apply this config to my component. Im using a controller with a config setting by me, but how can I provide a default config set of options like in a jquery plugin: $.fn.helloWorld = ...
3
votes
4answers
4k views

Angularjs Typeahead Directive - error: ''Cannot read property 'length' of undefined"

I am using the Angularjs Bootstrap Typeahead directive and running into an error that says the following: Error TypeError: Cannot read property 'length' of undefined at ui-bootstrap-tpls-0.12.1.min....
0
votes
2answers
136 views

AngularJS Typeahead error on returning results

I have the following code that makes use of AngularJS and the Angular Bootstrap Typeahead widget. The problem is that it only returns an error- property length of 'undefined'. Any help would be ...
1
vote
1answer
398 views

How to get the parent controller in controller as Syntax in angular

I am using angular bootstrap modal like this var myModal = $modal.open({ controller: 'MyUpdateController as muc', templateUrl: 'views/create_form.html', Now my parent controller ...
3
votes
3answers
211 views

Angular write into nested scope properties

I have multiple "input field and a button" couples in my app. The button opens up a dialog to write something into the text field. [ input ] [ button ] ---> [ dialog ( ok ) ( cancel ) ] I've used ...
1
vote
1answer
1k views

Angular - bootstrap modal inside ng-repeat - how to update data on the main scope?

I am using ng repeat to display a table, the table contains an 'edit' button that opens a modal. Once the data is updated in the modal I dont know how to get the modal scope data back to the main ...
-1
votes
1answer
530 views

How to have two different modals on a same controller on a same page?

I need to have two modal windows on my page, inside of each window is a form with some field, but i dont know how to put all that in a same controller. Here is a plunker link to my code <html>...
1
vote
0answers
147 views

UI.Bootsrap conflict with AngularJS password matching

The problem stands as follows: I have a fully working angularjs code for password matching: var app = angular.module('ngMatch', []); app.directive('match', function () { return { ...
3
votes
1answer
1k views

$scope is not available to ng-template

I'm trying to use modal for editing a form, the modal is in ng-template script, but the form data is not displayed when clicking the edit button. The $scope is not available to the template script. I ...
1
vote
0answers
109 views

Firebase syncObject is showing redundant error in my Angular controller

I am building an app for a client who has, as one of their data sets a master list of all their members. I have the data coming in from Firebase and everything runs peachy, but it's not that DRY I am ...
1
vote
1answer
538 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
2k 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
972 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 ...
1
vote
1answer
2k 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
1k 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
208 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 ...
1
vote
1answer
578 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
759 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
1k 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 - <...