angular-ui

AngularJS error - [$compile:multidir] Multiple directives error

淺唱寂寞╮ 提交于 2019-12-12 10:30:35
问题 I use these packages: An angularjs modal from angular-ui package: http://angular-ui.github.io/bootstrap/#/modal And Angular-flexslider from here: https://github.com/EnthusiasticCode/angular-flexslider Every plugin works good when they are in separate pages. but when i use them in one page, angular-flexslider causes an error: Error: [$compile:multidir] Multiple directives [flexSlider, slide] asking for transclusion on: <div class="flexslider-container ng-isolate-scope ng-scope" slide="s in

How do I use jsonp with angular-ui calendar

那年仲夏 提交于 2019-12-12 10:05:17
问题 I'm using angular-ui calendar to try and pull events from my API. The API is on a separate domain so I have to use jsonp. I've tried various ways to get this working but can't get the events onto my calendar. I built a service to call the API angular.module('myapp.services', ['ngResource']) .factory( 'SurgerySource', ['$resource', function($resource){ return $resource( 'http://api.mydomain.com/calendar.json?callback=JSON_CALLBACK&start=:start&end=:end', {start:'@start', end:'@end'}, { jsonp

Angular-UI $dialog and form submit on enter key

北城余情 提交于 2019-12-12 07:11:43
问题 From what I can see, the recomended way to handle enter key in dialogs in AngularJS is to place a <form> tag and a submit button inside the dialog. Fair enough, but if you use Angular-UI and their $dialog service, the form will simply close silently when pressing enter. no way to intercept that. even if you attach handlers to ng-click or ng-submit, the form will just close w/o returning any result. Is there something else I need to do [Edit] Solved it, I had to specify explicitly that my

AnguralUI Calendar initialising issue: TypeError: Cannot read property 'length' of undefined

风流意气都作罢 提交于 2019-12-12 06:36:07
问题 I'm trying to implement angular-ui calendar. I installed all the needed dependencies with bower , included scripts in following way: <script type="text/javascript" src="bower_components/jquery/dist/jquery.min.js"></script> <script type="text/javascript" src="bower_components/jquery-ui/ui/jquery-ui.js"></script> <script type="text/javascript" src="bower_components/angular/angular.js"></script> <script type="text/javascript" src="bower_components/angular-ui-calendar/src/calendar.js"></script>

Angular-UI $scope.myMap is undefined

一世执手 提交于 2019-12-12 03:08:33
问题 I'm trying to $watch myMap but it never fires. I've narrowed it down to having used ui-if (if I remove the ui-if, $scope.myMap is the proper google maps object). However I need to keep the ui-if in order to get ui-map to wait for my AJAX/Db query to finish. Why isn't myMap being added to scope (and how do I get it to)? Plunker Edit I see from this GitHub issue that ui-if creates its own scope. So how do I access its scope / wherever myMap now lives? Also, why does ui-if create a new scope?

angular-ui router — inherited resolved dependencies for NAMED dependencies

橙三吉。 提交于 2019-12-12 02:03:39
问题 Per the example in the documentation, child states will inherit resolved dependencies from parent states. Furthermore, you can have promises for parent dependencies be resolved before children are instantiated by injecting keys into child states. See example from documentation: $stateProvider.state('parent', { resolve:{ resA: function(){ return {'value': 'A'}; } }, controller: function($scope, resA){ $scope.resA = resA.value; } }) .state('parent.child', { resolve:{ resB: function(resA){

Combining ng-grid and ui-select2: unable to select a value

萝らか妹 提交于 2019-12-12 00:44:28
问题 In the editableCellTemplate of an ng-grid, I wanted to use a more user-friendly dropdown, and I found ui-select2 to be a good one. The thing is however, that any click on this component, when it is used inside the ng-grid, results in the cell juming back to non-editable mode. This way I can't select another value using the mouse (I can using the arrows on my keyboard). When I put the dropdown in the cellTemplate, it works, but it should also work in the * editable *CellTemplate. Some code to

Canvas content disappears on Chrome 49 on Mac with an AngularJS tooltip

五迷三道 提交于 2019-12-12 00:31:47
问题 The problem I have - the content of an HTTP canvas disappears, when I have a tooltip on a button that opens a new tab. This is a very specific symptom, so I'd try to walk you through it. I'm able to reproduce it with the following HTML, but not in a plunker or jsfiddle unfortunately: <html> <head> <style> .container { height: 300px; width: 300px; } canvas { border: 1px solid black } button { margin-top: 15px; } </style> </head> <body ng-app="CanvasTooltipApp"> <div ng-controller=

Can't use Angular-UI bootstrap typehead: JSON with multiple attributes

ε祈祈猫儿з 提交于 2019-12-11 23:14:34
问题 I have a JSON response like this: { "Unidades": [ { "Nome": "laskjdhflksjfg", "Codigo": "11106600" }, { "Nome": "wertwertwertwer", "Codigo": "11106601" }, { "Nome": "wertwertwertwer", "Codigo": "11106602" } ] } and I'm trying to use Angular-UI bootstrap typehead doing this: CONTROLLER function TypeaheadCtrl($scope, $http) { $scope.selected = undefined; $scope.url = 'unidades/unidades-controler.asp'; //the response of json is from here $http.get($scope.url).success(function (data, status) {

how to store and retrieve data in angular js?

不想你离开。 提交于 2019-12-11 21:14:28
问题 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 persistance.js will do that ..can we use that ?I am try to make a simple example to store data but not able to that .I want to save list of name of student and class. here is my plunker : http://plnkr.co/edit/cLTIJfETGYENQyEdsu94?p=preview // Code goes here var app = angular.module('appstart', [