Tagged Questions
AngularJS (a.k.a. AngularJS 1) is an open-source JavaScript framework. Its goal is to augment browser-based applications with Model–View–Whatever (MV*) capability and reduce the amount of JavaScript needed to make web applications functional. These types of applications are also frequently known as ...
0
votes
0answers
5 views
Angular Js updating view in an event not working
Im looking to build an book shelf application which add,removes,edits books shelf data using angular routing.
But when i try to prepoulate a record to edit it im not able to get the prepopulated ...
0
votes
0answers
4 views
AngularJS Auto-Validate custom message from server
Java Spring-MVC frame work
AngularJS
Auto-Validate
(http://jonsamwell.github.io/angular-auto-validate/#custom_dom_modifiers)
Auto-Validate has its own error messages but I am trying to get the error ...
0
votes
0answers
6 views
Flapper News ui-view cannot display html file
I'm doing a tutorial from https://thinkster.io/tutorials/mean-stack called flapper news. I have completed the tutorial and the system work fine. But, I was thinking doing an inline template in a ...
0
votes
0answers
11 views
Angular 2 - Get passed object to component via inputs
On my parent page I have a link here:
<a (click)="showPermissionsRates(5757);">Link</a>
The function sets it:
showPermissionsRates(item) {
this.currentEventPoolId = item;
}
...
0
votes
0answers
2 views
Angular NVD3 access the API in a loop
I need to repeat a underdetermine number of graphs. In the tool, I also need to access to the NVD3 API. For that I try to use code like this:
<div ng-repeat="val in values">
<nvd3 ...
0
votes
0answers
7 views
implement angular filter using checkbox
I have a list of dashboards(vm.dashboards) out of which I want to filter the dashboards created by me. By default it displays the entire list but when i click on the "show my dashboard" checkbox , it ...
0
votes
0answers
4 views
Angular Charts : How to avoid hiding of labels on X-axis when screen is resized to minimum
On the X-axis of the line chart, labels on odd position auto-hide itself when i resize the browser window to its minimum limit. It happens, when number of label is more than 11 ( default value of ...
0
votes
1answer
9 views
Angular can't disable $log
I use angular with angular-permission library. Need to disable warnings in console.
This component (angular-permission) call angular $log service:
Tried disable this in config, but warning still ...
0
votes
0answers
5 views
Protractor - interacting with md-selects from angular material
I have an angular application using the angular material library and have a flakey test involving selecting an option from an md-select input.
//Locator in page object file
this.productSelect = ...
0
votes
0answers
9 views
AngularJs displaying MongoDB data
i've a problem with the interact of AngularJs and MongoDb.
I use NodeJs and ExpressJs on the server-side. With Mongoose i talk to Mongo.
I've just done the routes.
index.js
app.get('/api/...
0
votes
1answer
12 views
Import array stored in angular factory
I'm super new to Angular and JS in general. Basically I have an array thats stored in a var inside a factory and I want that entire array (this.insights) to get imported(?) into my directive.
I ...
-1
votes
1answer
17 views
Angular call controller method from directive template
I create simple project with angular and I use directive to create a simple grid like this code :
my directive :
app.directive('dpGrid',()=>{
return{
restrict:"E",
scope:{
...
0
votes
1answer
20 views
Swap elements in angular js
Suppose I have n number of elements. Which are rendered using ng-repeat in the DOM.
Now I have functionality of move-up and move-down elements. For that I swap two elements according to direction (up ...
-1
votes
1answer
10 views
how to allow only numbers in textbox in agularjs and it should work in IE
how to allow only numbers with two decimal points in textbox in agularjs and it should work in IE.
0
votes
2answers
13 views
Inject service in controllers using angularjs
I'm creating an app using angularjs, I have two controllers, and one service (all in separated files). My problem is that I can't inject the service in the controllers. I used the service in the same ...
0
votes
1answer
22 views
How to change boolean value on click in angular 2 component
How do I connect the button to change the values of the [codeOnly] values in the directives below it?
I'm using Angular 2.4.10 in typescript.
<button class="btn btn-primary">
Click me to ...
0
votes
0answers
11 views
angularJS page does not render anything
i know that this question is duplicated but i searched a lot and i can't solve it , i want to create page in angulrJS App and it does not render any data without any errors on console
this is the ...
0
votes
0answers
4 views
how to capture ng-repeat result after sorting but before pagination?
I am using ng-repeat to create a sortable, paginated table as below:
<tr data-ng-repeat="property in filteredProps | filter:search | customOrderBy:sortColumn:reverseSort | startFrom:pager....
0
votes
0answers
7 views
Laravel parent variable ng-click
I am having troubles with Angular in Laravel. I am trying to change a variable by clicking on a button.
For this I wrote the following code:
<div class="user-team-navigation col-sm-12" id="user-...
0
votes
0answers
5 views
Angular UI Grid - Exporting an image to a pdf
I want to add an image to the header of the pdf.
I am trying to add the image, which I converted to base 64, to exporterPdfHeader.
$scope.gmGrid.exporterPdfHeader = {
margin: [30, 5, ...
1
vote
0answers
18 views
Upload muliple files via AngularJS to Laravel Controller
I have
Browse files button
<input type="file" upload-files multiple />
Create Button
<button class="btn btn-link" ng-click="store()" >Create</button>
Directive
myApp.directive('...
1
vote
1answer
10 views
Previous to page with ui-router
I have a SPA system and to do the routes I am using the ui-router $stateProvider.state and this case the browser not save the history to that I can return to last page, I tried many things and didn't ...
0
votes
0answers
11 views
Bootstrap AngularJS fullscreen table
I have a table with a lot of columns and a horizontal scrollbar. I'm searshing a way to show it in fullscreen, like you can do in gmail when you want to see an mail attachement with a glyphicon-resize-...
-2
votes
0answers
8 views
What is the equivalent of dom.create() method of DOJO, in AngularJS?
Just like we can manipulate the DOM by creating new nodes using the method dojo.create() in DOJO, how do we create new DOM elements at run time in AngularJS?
The idea is to create an HTML element ...
0
votes
0answers
17 views
Execute submit method only if validation method is successful (based on promises)? [duplicate]
I have these two methods based on promises.
submitReport() is called, I need return this.dataService.submitReport(args) to be executed only if preValidateReport() succeeds.
For some reason, return ...
0
votes
0answers
8 views
update Current Item Database in Firebase with Angular / Angularfire
i'm using firebase as a DB and Angular to create a backend.
I'm having some issue when I want to update one specific item of my database.
My DB is like this:
--mydomain
----posts
--------POST ...
1
vote
1answer
17 views
How To Change Select to ng-invalid in Angular
I have an expiration month and year that appears in a form using a select input field. When a user clicks the month and year ng-change fires a function checkDate() to validate. I use the console to ...
0
votes
0answers
16 views
Undefined data in angularjs ui grid
i'm using angularjs ui grid heres my code :
$scope.gridOptions = {
enableSorting: false,
expandableRowTemplate: storyboard.customHtml,
expandableRowHeight: 90,
...
0
votes
0answers
14 views
Angular 2 form submittal not working on 2nd click
I'm having an issue where my search form/button will not work on a second try/click.
Here's the structure:
Homepage html
<search-component></search-component>
<!-- other homepage ...
0
votes
2answers
24 views
Check angular radio button using jQuery
I have an angular modal with a pair of radio buttons and depending on the value of quicklink I want a certain button to be checked however neither of the buttons are checked until clicked on with ...
0
votes
0answers
4 views
Angular 2 Multiple Aux Routers
I created an angular app that gets split up (using webpack) based on the components. The only things they share are the package.json and any of the config files. These apps are on the same page, but ...
-1
votes
1answer
12 views
how to add $model for show pop html angularjs
i am using below angularjs library in my project... i want to and $model its show error why i don't know
https://ajax.googleapis.com/ajax/libs/angularjs/1.6.3/angular.min.js
below code does not run.....
0
votes
2answers
9 views
how to hide navigation menu bar on scroll down and it should appear on scrolling up using angularjs?
How to hide navigation menu bar on scroll down and it should appear on scrolling up using angularjs?
I want solution without using library 'headroom'.How can i do that please suggest the solution.
0
votes
0answers
6 views
how to bind function to dynamically compiled and appended directive?
I am dynamically adding angular directives in my app (using another directive called add for this purpose). The directive to be added needs a function, so I have to bind the function to added ...
-1
votes
0answers
5 views
SelectedTab implementation in angularjs tabs
On click of Listview a new tab opens to show the Detailed view of the ListView Content.Dynamic tab with Dynamic contents gets created everytime i click on the clickable row column.On open of the ...
0
votes
0answers
12 views
angular ui-router skip login for authenticated user
i have an angularjs app, i am using cookie based authentication in this app. when i login with two different users in same browser window in different tabs my cookie gets override. For example i am ...
-1
votes
0answers
9 views
Angular JS Dialog, using JavaScript event
New to AngularJS, I am trying to do something which may be wrong but you guys can let me know.
So essentially I'm working on a Calendar, which is done in JavaScript but we have attempted to sort of ...
0
votes
1answer
9 views
Ionic2 Disable 300ms delay on label element
I'm displaying a custom view for my radiobuttons inside a form and toggle it with the label-for-attribute. Ionic2 itself removes the 300ms delay on anchors and buttons but i'm not shure how to remove ...
-2
votes
0answers
12 views
leaving directive with an empty dependency (in array form) makes an error (Error: [$injector:unpr])
For example, this does not work and makes an error
app.directive('notImportant', ['', function(){
return {
link: function(scope, iElm, iAttrs, controller) {
console.log('...
0
votes
0answers
9 views
Navigating to state replaces the index ui-view with state's component, instead of named ui-view inside of parent's template
Plnkr: https://plnkr.co/edit/TrjrZ4vQlOjxyjc1mKQt?p=preview
Expected
After Login selecting a Ticker should display the Tags list to the right of the Ticker list in an orange area called Tags scope.
...
0
votes
0answers
21 views
Duplicate requests
I am new to Ionic and angularjs. Getting duplicate Http requests for the controllers and services having http request. The following is one of the service I have created using ionic. I am not getting ...
0
votes
0answers
8 views
Make Angular d3 Bullet Chart vertical
Is it possible to make Angular d3 Bullet Chart in vertical possition?
Can't find any options for that solution
Buller Chart Example
Or maybe it's possible to do this with another chart of d3 - to ...
0
votes
0answers
5 views
Webpack unable to bundle inline assets into build
I am using the following Angular Webpack Started Kit and I'm running into a few major issues:
1) Inline assets are not bundled correctly for production use. For example, if I include an image inside ...
0
votes
1answer
30 views
Angularjs $http returns a 404 instead of a 200
I am currently trying to upload some data to my self-written backend using the angularjs $http object. Using this object I have some weird behavior in my coding. When I run my application using the ...
0
votes
1answer
12 views
Angular aside modal window with form. The form is being submitted when i cancel\close the window
I am using angular aside to create a modal window. In the modal window there is a form with a submit button and a close button.
If I fill out the form and submit it and then click the close button ...
0
votes
0answers
11 views
loading non-default state of ui-router not working
So i have two states, home state is by default, but when i first load my application using localhost:8080/myApplicatoin/#/resume, it still loads /home state, only after second attempt it loads home ...
1
vote
3answers
24 views
How to construct scope variables dynamically in angular view?
Suppose, I have :
$scope.head1="abc";
$scope.head2="bfc";
...
...
$scope.head12="bfc";
and, I do this :
<div ng-repeat="count in [3,4,5,6,7,8,9,10,11,12]" class="padding-top-10">
<span&...
0
votes
0answers
23 views
$compile doesn't insert scope variable into the HTML
I want to test the rendering of an HTML with my scope variable inside my unit test.
HTML has 2 <textarea> which are as follows:
<textarea ng-model="a" ng-change="someFunction(a)" value={{b}}...
0
votes
1answer
24 views
Display all items in an array property in Angular 2
I have a type script component that defines two interfaces like:
interface Project {
name: string;
activity: string;
lastBuildStatus: string;
lastBuildTime: string;
lastBuildLabel: string
webUrl: ...
0
votes
0answers
7 views
Update Database path of current post for a file upload on firebase with Angular / Angularfire
here is my situation, i'm trying to do a back end of my ios app with Angular using Firebase as A Database. I'm almost there but I need some hightlite for the last run :)
Currently, I'm displaying ...