Tagged Questions
-1
votes
2answers
72 views
AngularJS $http.get(…).success is not a function? [duplicate]
I'm trying to update code from angularjs 1.4.8 to 1.6.6, this means that i'm getting an error as .success and .error have now be deprecated...I've tried googling and following existing examples on ...
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
...
1
vote
0answers
85 views
Class directive dynamically adding another directives
I'm trying to create an angular directive (as a class) which dynamically adds a angular ui tooltip to the same element. I've tried following, which unfortunately does not work.
MyApp.directive('...
0
votes
2answers
2k views
Handling angularjs ui grid cell template ng-click function for var ctrl = this syntax in the controller
I have the following columnDefs for my angularjs ui grid :
ctrl.temporaryRegGridOptions.columnDefs = [ {
field: 'firstName',
'displayName': 'First / Company Name',
...
1
vote
2answers
884 views
Angular-ui validation not working in model window
I am working on AngularJS with ui-grid. In the grid when i edit a row I am opening a modal window like this
$scope.editRow = function(row){
var modalInstance = $modal.open({
...
1
vote
2answers
2k views
how to use uibmodal with a scope sub parameter?
Using angular-boostrap's uibmodal, I want to give my modal a namespaced set of scope parameters to work with. I need these scope parameters to live in my parent to passed on to other controllers, but ...
0
votes
0answers
143 views
Use variable from directive (after http post) in the controller (scope)
I'm having problems to set a variable from the directive and use it in the scope of my controller.
In my directive I have:
function full_calendar($http, $compile) {
return {
restrict: '...
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 $...
7
votes
1answer
438 views
Angular-ui: Is any modal opened?
I'm want to launch a code if any modal opens. Commonly I'm want something like:
$scope.$watch(function () {
return $modal.isOpenState;
}, function (val) {
//my ...
2
votes
0answers
103 views
Is there a way could I dynamically generate angular directives at runtime?
I have this crazy idea, I'm building an app with different contents to show, and the contents' data is from the server with websocket, also the directives for showing the data.
So I'm wondering if ...
1
vote
2answers
1k views
Changing value of an input date picker with button angular
I have have an input field which is attached an Angular UI datepicker.
Below that, I added 2 buttons to change date, "day by day".
Here is the input part (just after in my page):
<p class="input-...
1
vote
1answer
218 views
How to force reload if anything changes in JS while user is browsing in between partials
In my angular app, there is:
index.html: which holds all statics like js and css and a ng-view tag, which loads all the partials.
partials: which are loaded in ng-view as and when user reaches out.
...
1
vote
0answers
284 views
Client Side Timeout is not working in Angular js
I am developing an angular js application, In which I am implementing some logic to timeout for a http service.Below is the code snippet on which i am working :-
var wkUrl = "api/" + 'Customers'; //...
1
vote
2answers
2k views
How to get data from http request in angular ui bootstrap model
I am trying to get data from http request inside angular ui bootstrap modal here is my modal code
$scope.open = function (size, id) {
$scope.hallName=[];
var modalInstance = $modal.open({
...
0
votes
2answers
49 views
$location.path is not getting redirected to the specified path
I just want to redirect a page without re-loading the page.
So I have tried the following
$location.path("/myPath");
But I doestn't redirect as expected. Since my module file is not getting hit ...
10
votes
2answers
26k views
How can I clear all the AngularJS $scope and $rootScope values within a single function?
I need to clear all the $scope values while performing some operations.
For eg: If I Click a "Signout" button to redirect to "signin" page, then all the $scope or $rootScope values in the session ...
0
votes
2answers
554 views
Parent scope update child scope
I found many ways to update parent scope variable from child scope, which is The Dot, but in my case that didn't help.
I have ui-bootstrap accordion which open and collapse according to isOpen ...
1
vote
2answers
1k views
How to pass data between controller on different files in Angularjs
I have a page with the Controller_1
the Controller_1 open a modal with a different controller on a different file that we call Controller_2
and then the Controller_2 open another modal that have a ...
0
votes
1answer
437 views
Angular UI bootstrap Carousel: my function in scope always calling after carousel change slide
I have a simple code:
angular.module('ui.bootstrap.demo', ['ui.bootstrap']);
angular.module('ui.bootstrap.demo').controller('CarouselDemoCtrl', function ($scope) {
$scope.myInterval = 5000;
var ...
0
votes
2answers
2k views
How can I show next 15 items in ng-repeat?
I am currently using angular ng-repeat.
When a user clicks a button that says "Next 15", I would like to show next 15 items.
I don't want to pop items from array, I would just like to hide first 15, ...
-1
votes
2answers
62 views
It's not loading the views in Angular
I have an empty MVC project, however I do have a folder created by name MyViews and containes html (view1.html and view2.html) while the script html is under the main project folder (Location is below ...
1
vote
2answers
360 views
Angular - Multiple controllers using ControllerAs in route
I have an issue which I will go on to explain. When using ControllerAS at the top of a html page such like this:
<div ng-controller="MyController as myControllerVM">
I can refer to things in ...
1
vote
3answers
806 views
AngularJS $scope issues in tabset
I have a problem trying to watch in my controller a collection generated by a filter in the view.
I store the filtered data in a variable :
<table class="table">
<tr ng-repeat="item ...
0
votes
3answers
115 views
Angular model/controller “hierarchy” setup
I am building an angular app that is essentially an admin panel for all my sites & their environments using ngboilerplate. I need to setup a kind of hierarchy of functions & model data such ...
3
votes
2answers
9k views
How To Refresh Ng-repeat With AngularJs
I am creating a table with few data. I don't want to load all the data at once. So I create a button on view when the user click that buttoon then it hit the server and take the next 4 datasets. At ...
0
votes
1answer
410 views
Angularjs can't edit textarea after ng-model load
After text area is updated with my text, I can't seem to update the text in textarea.
$scope.desc = "";
$scope.d = function () {
for (var i = 0, len = $scope.stat.length; i < len; ...
-2
votes
1answer
1k views
Error: [$injector:unpr] http://errors.angularjs.org/1.3.4/$injector/unpr?p0=%24ngMapProvider%20%3C-%20%24ngMap at Error (native)
I get following error when I run my application. Just want to know what this means if anyone has experienced with the same?
Error: [$injector:unpr] http://errors.angularjs.org/1.3.4/$injector/unpr?p0=...
0
votes
1answer
118 views
How to execute a service that check the status of backend data at all application use AngularJS
Like it's mentionned on the title, I'm trying to create an Angular service that will be used like a listenner on the backend, It will check if the backend finished calculating a list process and ...
0
votes
1answer
55 views
AngularJS function inherit
I have angular JS with 5 controllers and I want to all of the children inherit all functions of parent (datetimepicker, autorefresh etc.. that is predefined in parent controller) I tried with ...
1
vote
2answers
1k views
How to bind view to multiple controllers in angular js
I have two contollers on web page ParentContoller and ChildContoller.
How do I pass value from ParentContoller.js to ChildContoller.js.
I can bind that value on view from parentContoller to child ...
0
votes
1answer
42 views
angularjs placement for event which will be used sitewide
I have this event:
$(window).bind("beforeunload", function() {
//do something
});
Instead of putting this event on each controller, I want to know if its possible to put this ...
8
votes
1answer
21k views
fire angularjs event when tab/browser is closed
I would like to fire js code in angularjs controller.
I have this:
$scope.$on('$destroy', function () {
alert('page1');
});
This is working fine when I'm navigating away from ...
0
votes
1answer
120 views
unable to change root scope model value in Angularjs application
I am trying to change my root scope model value upon ng dialog close but the value is remaining as it is. I am expecting $rootScope.isNgDiagClosed to be 'true' when I click 'Show More' button and ...
0
votes
1answer
388 views
Parsing ui.bootstrap.datepicker object
I written a directive for ui.bootstrap.datepicker. (http://angular-ui.github.io/bootstrap/) It is working well but it is not parsing the date object back to the control probably once a date is ...
0
votes
1answer
3k views
In angular js, how do I show angular-loading bar with ui-router and ocLazyLoad
Problem : I am not able to load the angular-loading-bar using lazy load and ui.route.
Am I missing something ?
This is how my config.lazlyload.js file looks like :
// lazyload config
...
1
vote
1answer
244 views
issue in using Angularjs ui tree inside ng Dialog
I am trying to show angular js ui tree inside ng dialog. Even though the appearance is fine but the check box functionality is not working. Similarly Select All, Collapse All, etc buttons ...
-1
votes
1answer
249 views
AngularJS controller,directive, services and factory communication
I had started work on angularjs.Currently i am stuck on some point like how to communicate with directive to controller/service/factory.
My use case was like, I have custom directive with its 5 to 7 ...
3
votes
1answer
1k views
How to show Sublevel Array Using table element with AngularJS
I am beginner in AngularJS.
My Question is how to show Parent/Sub level Array Records in table format with expand/collapse functionality (child row should be displayed on expanding the parent row) ...
0
votes
3answers
356 views
Not getting value populated in the success callback of angular ui modal
I'm trying to replicate an issue in plunker but unable to do it. I've both the code exactly same but plunker still behaves differently for some reason. My issue is that I'm not getting "personModified"...
0
votes
0answers
175 views
Angular show tooltip
I display input form with a textarea and button.
I want to show tooltip when textarea data is invalid.
When i used then method $setValidity to enable tooltip. It shows well but its style and ...
0
votes
1answer
1k views
AngularJS UI Datepicker with Bootstrap not working
I'm trying to get a datepicker to work with AngularJS. I'm using jQuery, jQueryUI, Bootstrap and AngularJS in my project. I tried the jQuery UI datepicker but that doesn't seem to work well (not at ...
7
votes
2answers
15k views
Global Functions in angularJS
I am new to angularJS. So need help on how to add global functions in angular project?
File loading my angular app is using showScrollAndGo function which should be work as global method but it is not ...
1
vote
3answers
1k views
when I put ng-controller in div instead of body autocomplete stops working
I have a textbox with autocomplete capability and after clicking on click me button the text in autocomplete is added as in the table , here is the link that works perfectly fine,
var app = angular....
0
votes
3answers
334 views
How many milliseconds interval does angularjs re-render the ui?
as title shown.
when we bind somethings like
$scope.text="ASD";
in html:
this is {{text}}
and when we change $scope.text, in html the value also changed, because of the 2 way binding.
my ...
1
vote
2answers
760 views
autocompleted text in textbox does not add to table completely
I am new to angularjs,
I have a textbox and I have a button and table:
whenever user click on add button the data in the textbox would be added to the table:
here is the link to my code:
code
...
0
votes
1answer
1k views
angularjs directive i want to create a html template with button
var ImagesApp = angular.module('Images', []);
ImagesApp.directive('fancybox', function($q, $http, $templateCache) {
return function(scope, element, attrs) {
scope.ShowFullImageByClick = ...
0
votes
2answers
246 views
How to import module and display on view in angular?
I am trying to load my first view in angular. But I make a project in modular fashion to learn good coding style.
I will show how I make a directory to create a module
Or look at full image here...
...
0
votes
2answers
5k views
how to move one page to another in angular js?
could you please tell me why I am not able to navigate one page to another on button click .
I do like that
var loginCntrl=function($scope,$location){
$scope.testClick =function(){
alert('sss')...
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 ...