Questions tagged as 'angularjs'

1
answer

Clear input - ng-model - change

I have md-select where according to the selected, I create some div's using ng-if . These created divs have in 02 of them, equal models (ng-model). Therefore, when performing the md-select switch to another that has the same model,...
asked by 27.06.2018 / 13:54
1
answer

How to make checkbox behave like radio in ng-repeat?

I'm trying to make a checkbox behave like a radio, but I can not see some examples but I do not understand how it works. If anyone can help me. Thank you in advance for your attention! var app = angular.module('plunker', []); app.contro...
asked by 28.06.2018 / 20:31
1
answer

Pass ID to modal via ng-repeat AngularJS

How to get the ID (prod.productoId) of the row in ng-repeat and change to modal to update the record. It should be something with ng-click on the button but I'm not finding any examples. Someone could help. Thanks! <tr ng-repeat="prod i...
asked by 20.07.2018 / 15:44
1
answer

How to get specific return data from a JSON with Ionic 3

I think it's simple, but going from Ionic 1 to 3, changed so many things. I need to get all the returns from my Json from this routine (I actually need the user ID and register in localstorage): submit(){ var email = this.data.email;...
asked by 20.07.2018 / 16:20
2
answers

javaScript function does not work when used ng-include angularJs

I'm doing a tamplate injection via% of angles. Inside this template I have a button that calls a modal which is inserted in the template by another injection. Until then everything works correctly. Within the modal I have some inputs and a butto...
asked by 20.07.2018 / 13:41
2
answers

Error in ngModel call

I'm trying a 'Can not read property' reason_social 'of undefined' error when calling a ngModel in my html. I created an interface like this: export interface IEmpresas { nome_fantasia : string; razao_social : string; cnpj : string;...
asked by 26.05.2018 / 17:30
1
answer

Use attributes of the element in function in the scope of the controller

I have a form that calls a function when being submitted through the attribute, for example: ng-submit="submit('POST', 'example.com')" I would like this attribute to be called just the function, and in the function that data would be taken...
asked by 25.05.2018 / 03:22
1
answer

Inline edition vuejs

When you click on the note column all the inputs will appear. I wanted each input to appear when clicked on the corresponding line. new Vue({ el: '#app', data: { nota:'nota', edit: '', myclass: '...
asked by 24.05.2018 / 16:04
1
answer

Get or return a variable for the angle

I have a method where I do a certain validation and depending on the scenario, I need to return only one alert and continue with the request or a possible BadRequest also returning a message. I thought of trying to access a variable within...
asked by 22.05.2018 / 14:24
1
answer

Problems adding side menu to project already started

I'm starting with Ionic , I have a question. I created a blank ionic start project blank project, and I was able to create the main screen of my application, just a LOGO with "ENTER" button to enter the app, but I would add in the page ENT...
asked by 15.06.2018 / 16:07