Questions tagged as 'angular-directivas'

1
answer

I need to make a filter with angular and linq, in a project in visual studio Wapi rest c #

In my html code, I have a select and I need to select an area and show me all the tables (represented as buttons) Linq (MesasController.cs) [ResponseType(typeof(Mesa))] [System.Web.Http.HttpGet] [Route("GetMesasPorZona/{idZona}")] public IQ...
asked by 14.08.2017 / 23:06
1
answer

Custom Angular directive to show or hide items in multiple views

I am working with Angular js in a modular application. When a user enters the application, it determines the number of boats that the company has and in the menu view it shows a selector that allows to select one of the boats to manage it. <...
asked by 26.09.2016 / 19:10
2
answers

The ng-attributes of AngularJS do not pass the W3C validator

When I try to validate a page made with AngularJS, I find that it does not correctly validate and throws numerous errors in the code (it is usually the same repeated). The problem is that the attributes ng- are not considered standard and...
asked by 07.12.2016 / 18:17
2
answers

Detect when I'm doing scroll on an element

//Directive active view. app.directive("activeView", function ($window, $rootScope) { return function(scope, element, attrs) { angular.element($window).bind("activeView", function() { //variables condiciales va...
asked by 10.02.2017 / 17:53
2
answers

Adding values within NGFOR

I would like some help. I am generating a table within a ngFor , but I need to show in the footer of the same the sum of a certain field: <div *ngFor="let pista of prize.pistas"> <div> <h2>{{ pist...
asked by 31.10.2018 / 23:48
3
answers

Show or hide div with Angularjs and ng-repeat

I have an array of students which I present their names in a list and under each name two buttons that allow assigning them a positive or negative rating. What I want to do is to click on the button (positive or negative) to show a message an...
asked by 24.10.2016 / 05:39
1
answer

Get a value instead of an object in a SELECT in Angularjs

I have the following code that shows me a series of hours from 07 to 22. What I want to know is how to get the value of the time selected in my controller and if it is possible to print on an alert. Vista html <div ng-controller="MyCtrl"...
asked by 31.05.2016 / 01:22
1
answer

How to create a custom directive - Angular 6

I created a custom directive in angular , and I want to share a value between my directive and my typescript file, this is an example of my 2 files: <!-- Mi html --> <div> <input type="radio" name="colors" (click)="color='...
asked by 01.08.2018 / 18:27
1
answer

How is the ionic [style] directive used?

I once read in a documentation that you could use an ionic or angular style directive, I do not remember well, I just remember that it was like this: [style.width]='expresión' and I can not find the documentation, does anyone know how to...
asked by 23.09.2017 / 01:48
1
answer

Conditional ng-if cycle using http service on angularjs

I have an http service and with the code I have received 5 ids. I would like to call them using a scope using a cycle if , the json format has as property isFile that if it is false it is a folder and if it is true it is a file. My...
asked by 17.06.2016 / 06:19