Tagged Questions
0
votes
1answer
19 views
Why might we reference $scope.model in angular code?
I'm working on some code that references $scope.model. So my understanding is that in angular the $scope essentially represents the model anyway.
In the code I'm working on certain properties have ...
2
votes
2answers
38 views
Scope from controller does not pass to directive
I have a html like this :
<div id="create-group" ng-controller="groupCreateController">
<div id="container">
<h1>Create group</h1>
<div class="...
0
votes
1answer
28 views
$watch not firing on variables with a dollar ($) [duplicate]
i have a watch for an object. when a property of the object changed, the watch fires, unless the property name starts with a dollar ($).
consider this code:
$scope.data = {};
$scope.$watch('data', ...
0
votes
1answer
20 views
Directives in transcluded view are childScopes altough they have `scope:false`
I'm writing a fairly complex AngularJS app in Angular 1.5. One particular part of it is aimed at data visualization.
With few exceptions, data visualization is handled by bundled plugins, each with ...
0
votes
1answer
18 views
angularjs data binding disappearing- Failing silently
I can not create complex data models in my controllers.
every time I create them the code seems to fail silently
simple data models like
$scope.conversationList = [123456];
work just fine both ...
0
votes
0answers
33 views
Sharing scope variable between sibling directives
I'm working on a table that can be expanded/collapsed by clicking on the header bar. To accomplish this, I have two directives that appear in the markup as siblings: slideToggle and slideable. I ...
0
votes
2answers
25 views
radio buttons not initializing correctly when entering a new page
I have a simple form that gets it's initial values from an object that I pass into the form's controller. Other models are displaying the correct values, but the correct radio button is not being ...
0
votes
1answer
31 views
Send callback to non isolated scope child
I need to add a callback to a child directive, that is not an isolated scope. I know you can do it with an isolated scope, you can also use scope.$parent to access it, however this isn't always ...
0
votes
1answer
31 views
How to optimize AngularJS config function
I have following config functions and run functions in my app.js file. What is the best way to optimize these function method ? can we move these into one single config function ?
Or Can we move these ...
-2
votes
0answers
23 views
Need help converting $stateProvider functionality into $routeProvider
In my codebase I use $routeProvider, but I want to include functionality similar to this $stateProvider example.
What would be the $routeProvider equivalent to the following code?
angular
.module(...
0
votes
1answer
29 views
Trigger a function when user makes dropdown menu selection
I'm working on an application for project management. Each project has a list of tasks associated with it.
I'm currently trying to get the modify task page to work. The idea is that:
User selects a ...
-7
votes
0answers
44 views
Which one is better among MVC, angular js, angular 2 and angular 4? [closed]
I am developing a new web application (product) which have around 80 forms and 30 reports.
I have read many documents related to MVC,angular js, angular 2 and angular 4.
Angular is client side ...
0
votes
1answer
30 views
handle APlayer through angular js - play music dynamically
I am new to angular js - trying to build an audio play using Aplayer
Task:-
1. Play music dynamically
2. On click of album get json data and add to aplayer
(function() {
'use strict';
...
-1
votes
1answer
40 views
AngularJS On selecting radio button set select field value
How do I set the select fields value by clicking radio button
-1
votes
2answers
35 views
Angular iterator in controller
I have a Json objects, which contains one field with date, I need to take it and prepare for other processing, but I don't know how to take just one field from one object, I tried to do that:
app....
0
votes
1answer
16 views
How do I access angular's $scope.{{formName}}.$dirty boolean with TypeScript?
I have a form with a name attribute, and I'm trying to use angular's $scope variable to access the form, and its $dirty boolean.
The problem is I'm using TypeScript, and if I set the type for a $...
1
vote
1answer
37 views
AngularJS not putting an array in scope?
So I'm attempting to use Angular JS and the angularSoundManager module to create a music player. I can get songs and the player to work fine, but when I tried changing the main array to be albums with ...
0
votes
0answers
34 views
Issue Angularjs Controller and json request
I'm learning angularjs, I was trying with a json file but not working properly because comic-detail.html displays all lists of json file, should display the content of the link requested in comics....
0
votes
4answers
47 views
How to transfer the data between controllers
I tought angular and faced with a problem: I have a SPA which contains two parts with controllers, the data returns from json file. The first conroller for showing the menu, the second - for adding a ...
0
votes
1answer
56 views
angularjs input field not updating after calling $(“.myItem”).dateInput()
My angular input fields are working fine, until I have a datetime editor.
<input class="myItem" defaultdate="2017-05-10T06:50" displayformat="dd-mm-jjjj uu:mm" pageupdownweek="true" ...
0
votes
1answer
28 views
How inform ChildController inside ParentController in Angularjs
I have a code similar to the code below:
<div ng-controller="ParentController">
<button>A</button>
<button>B</button>
<button>C</button>
&...
1
vote
1answer
42 views
Angular checkbox loading as ng-checked='true' on ng-change not seeing the change to false
Im having an issue with my ng-repeat checkboxes.
On modal load their status is set from the $http.get
They load fine. but if they are set to true on load when clicked on the ng-change dosent seem to ...
1
vote
1answer
52 views
How to feed data to a schema inside an AngularJS directive
I am trying to write a custom directive that will "create" a dashboard widget including:
Title (the name of the widget)
Schema (the way the data should be modelled or shown, i.e. it could be the ...
0
votes
0answers
20 views
AngularJS two way binding between controller, directive, and service
I have a table that can be sorted by column. I've made a directive for each header item that allows a user to click on the header to sort by that column. Additionally, the an arrow is displayed on ...
0
votes
1answer
10 views
using a modal to invoke a function from the parent scope (angular)
I have a main.controller.js and within that controller, i have a modal that i want to use to notify the user of a warning before continuing to the rest of the application.
so for example...i want to ...
-2
votes
0answers
48 views
MUlti select cascading dropdown list in angular in asp.net MVC
<div ng-dropdown-multiselect="" extra-settings="dropdownSetting"
options="Categories" selected-model="CategoriesSelected" checkboxes="true" ></div>
<div ng-...
-1
votes
1answer
21 views
How to preserve the old values of a form after changing the view in AngularJS
I have some input fields like radio buttons, text box, dropdown, text fields which is filled up by user and on click of a button a new view page opens. Now on back button press I want to show those ...
0
votes
2answers
36 views
why JSON.stringify change time when i parse json into it
why when i convert time JSON.stringify why my time change please help me how to handle this please anyone help me , and how to direct json transfer Code behind C# variable
subject_end: Thu Jan 01 ...
0
votes
1answer
26 views
how to push correct time from input textbox in angularjs
i want to push time in my database but when i push time my $scope.moreadditems variable its save wrong time please help me i am using angularjs
check when i enter time 9:00 AM why this show ...
1
vote
1answer
32 views
Angular scope dont get updated on view
I've an angular ng-click event here:
eventApp.controller('DetailEventController', ['$scope', '$http', '$compile', '$timeout', function ($scope, $http, $compile, $timeout, uiCalendarConfig) {
$scope....
1
vote
1answer
43 views
AngularJS. Prevent updating ALL data in $scope
I am novice in Angular and I have a question.
I noticed that angular updates all scope data on view (am I right?), even if it has been changed only one variable (that renders on view). Is it normal ? ...
0
votes
2answers
22 views
how to show json response data in angularJs?
i am trying to get url information through get_meta_tags though laravel and want to show in my angularjs application.
but the problem is response return in
Array
(
[title] => Mercy Badshah ...
0
votes
0answers
14 views
Correct data is not printing from controller to view page in angularjs
I am running this code but value is not going from controller to view page.
If i am taking int(number like : 3 or '3' ) value its printing it in to view page. but when taking string string ('hello') ...
0
votes
1answer
25 views
How to understand the scope attribute of directive in angularjs?
In the guide tutorial of angularjs directive, the directive object could have the scope attribute. It's defining the scope of the directive.
While the scope atribute value could be true, follow is ...
0
votes
0answers
34 views
ng-if scope inside of custom directive using parent scope clarification
I've found many examples (even on Stackoverflow), and also similar to this. However, still cannot figure out why my code is functioning not well, and need clarifications on that.
I have a custom ...
0
votes
0answers
20 views
Access ng-repeat scope from transcluded element
Since code's better than words...
Directive I'm trying to achieve:
<master-detail
translation-scope="mickeyMouse"
can-search="true"
can-select="true"
can-filter="true"
inject-...
0
votes
1answer
22 views
Select Dropdown not displaying $scope value in model
I've used angular plenty of times, but can't seem to spot the issue I'm getting:
I pass through an ID like so as a clickable link within a repeater:
<td data-title="'Company Name'" sortable="'...
0
votes
0answers
54 views
ng-repeat not binding to scope data from service after route change
I have an array of objects being called from a service and passed to scope to be used by ng-repeat. After route change I see the array in the scope using console.log(scope.data); but it doesn't update ...
1
vote
0answers
90 views
Again: ng-click not working inside ng-repeat inside ng-if
This is most likely going to be another Angular scope question. I looked hard for a solution on SO, however, nothing I found would solve my problem.
I am using Angular.js together with Swiper.js. ...
0
votes
1answer
16 views
Value undefined in angular custom directive
I tried to make a directive for destroying DOM elements if user doesn't have the permission to see it. I do this as follows:
angular
.module('digital_equation.auth')
.controller('...
0
votes
3answers
26 views
Ordering table data from separate JSON file by using AngularJS
I'm trying to sort the data in the units section alphabetically from the data that has been fetched from a JSON file. Before, I have tried to create another filter controller for the data, use GroupBy ...
0
votes
0answers
46 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 ...
1
vote
1answer
57 views
Loading map to ngSwitch child scope using ElementRef in Ionic
I'm trying to access a ngSwitchCase view using @ViewChild and ElementRef to load a google map in my Ionic 3 app. I understand the ngSwitch creates its own scope but is it not accessible in anyway so I ...
7
votes
2answers
81 views
CellFilter is getting called before $http Response in UI-Grid
I am using ui-grid to bind data from Role Table which contains Department Id as PrimaryKey. I am calling Web Api to get all the roles in the table and show in ui-grid.
Department Table
Role Table
...
0
votes
1answer
16 views
firebase.auth() using $scope after login
I use a simples ng-model to show login/content using angularjs, look my facebookAuthProvider:
$scope.enterFacebook = function() {
var auth = firebase.auth();
var provider = new ...
3
votes
1answer
52 views
How to properly reset angularjs v1 factory after certain function
I Made a factory that keeps the information in my scopes in a series of 6 pages. Now when the user completes the 6th page and pushes the object I want the factory to reset to empty arrays again.
I ...
0
votes
1answer
25 views
AngularJS Is it possible to listen to $destroy in another controller?
In my application, When a controller is being destroyed, is it possible to the $destroy event it emits in another controller?
0
votes
1answer
28 views
AngularJS 1.x Display one item at a time in ng-repeat, click on next should display next item and so on
I am developing a quiz web application, where I have to show 100 question in total across 3 different tabs (Math, GK, English), the questions are getting filtered using angular filter. But each tabs ...
0
votes
1answer
31 views
$scope and $watch is not updating/working
My ng-model is value not updating in controller bonded with $scope. There is no syntax error in my code that I can assure. Only one controller bonded with html.
$watch is only running once when page ...
2
votes
1answer
69 views
UI Not Updating even after $scope variable has updated data
I am getting the data for my view through a a service and assigning to the local variable using angular.copy();
var init = function () {
$scope.product = angular.copy(EditItemFactory....