Questions tagged as 'angularjs'

0
answers

How can I use the ng-options in a list

I am trying to fill a list according to when another is selected, when a value is selected from the first list a query is made in the BD , and later with that information I filled the second list, but I have to use the ng-options si...
asked by 16.08.2018 / 17:24
0
answers

Can I use npm in angularjs?

I would like to use node-cron in angularjs, I need to execute request within a cron-job from the controller, any idea? So far I have not found anything, except node-cron which is exactly what I need, regards.     
asked by 31.07.2018 / 18:13
0
answers

Ionic | AngularJS | Typescript | Sliders in LocalStorage

I have a slider that leads to a page when I press a button. I want only the slider to appear the first time, and when I re-enter the app, it does not appear and only loads the page. My code: Slides.html <ion-content> <ion-slides...
asked by 13.09.2018 / 02:56
3
answers

I can not validate when I use tag form

I recently started with this and I'm having a problem with my code. I want to make a simple login form and I am having the problem that I can not perform the validation if I use the form tag, otherwise the validation can be done but I lose the d...
asked by 24.07.2018 / 16:28
0
answers

Angularjs 1.6 with backend node js does not show data

On the frontend I wrote the following code <table class="table table-condensed table-striped table-hover" id="example" > <tr ng-repeat="item in $ctrl.entity"> <td class="acciones" data-title="'Acciones'">...
asked by 19.07.2018 / 03:59
1
answer

How can I send the id along with an event in Typescript

I have the following defined method: elclick(id:string) { console.log('El id es: ' + id); } And my html is this: <a id="0" (click)="elclick(this.id);">Button</a> What is the way this is done?     
asked by 24.07.2018 / 21:02
1
answer

Default value in md-autocomplete

I'm trying to set a default value to an md-autocomplete, but it's not possible for me. I need to be able to perform this function, since I have a service that returns certain parameters that should be automatically completed and, if it does n...
asked by 12.07.2018 / 10:59
1
answer

How to add delete button in the options of a select component

Good day. I have the following component select multiple <select multiple ng-model="templateSelect" id="sel_templates" material-select watch ng-change="loadWeeklyConfiguration(templateSelect)"> <option ng-repeat="x in template...
asked by 10.07.2018 / 23:27
1
answer

I get the following error 'directives' does not exist

cronometro.html <div> <button (click)="start()" >Empezar</button> <button (click)="lapso()">Lapso</button> <button (click)="stop()">Parar</button> </div> <div> <p>{{hora}...
asked by 14.07.2018 / 20:15
2
answers

Recognize variables of a string that is defined as string Angular.js [1.6]

How can I achieve the following .. $scope.id = 2; $scope.name = 'jhon'; $scope.render = "<b>{{id}} - {{name}}</b>"; .. <p ng-bind-html='render'></p> There is something like this in php printf ('text and other% s more...
asked by 10.07.2018 / 16:05