Questions tagged as 'angularjs'

1
answer

What is $$ hasKey in array items?

I noticed that for some reason, a property called $$ hasKey has been added to the items in my array. Each item has this property with different values. Example: [0: {$$hasKey: 'Object1', uf: 'ES'}, 1: {$$hasKey: 'Object2', uf: '...
asked by 04.05.2018 / 15:39
1
answer

Generate table automatically with c # and mvc

how to do the following (I do not have code yet). On the page, I have a table with a Row and 5 Columns and at the end of the table a button (+) and under the table a save button. The question is when I click the (+) button, should create ano...
asked by 06.04.2018 / 14:51
1
answer

How to get '#' from Angular URLs

My app's URL is like this ' link '. I'm trying to get the '#' from the URL, I've tried it in many ways but I can not. I have the following code. config.js: function config($stateProvider, $urlRouterProvider, $locationProvider, $ocLazyLoadPr...
asked by 06.04.2018 / 15:01
1
answer

Problem when posting site in iis made in angularjs

I am trying to publish a site in angularjs in iis but after publishing, when I go to it, it returns me in the console the following error: Indevelopmentthiserrordoesnotoccur...Mystructurelookslikethis Myconfiglookslikethis:<?xmlversion="1.0"...
asked by 12.04.2018 / 16:19
1
answer

* ngFor client side

I'm implementing a crud where I'm using ngFor to iterate through a list. But I do not know how to do it on the client side. I believe this will only be possible by creating a component in my main.js. But I'm not sure. var app = angular.m...
asked by 09.04.2018 / 08:42
1
answer

Disabling check according to selected quantity [closed]

I have a component that has an input: checkbox. This component is repeated several times on the screen. How do I block the checkbox, limiting my user to click a maximum of 3 checkboxes ie the user will only be able to click a maximum of 3 checkb...
asked by 09.04.2018 / 20:31
1
answer

How to read the result of a JSON Array using Ionic 3?

I'm doing a GET to login, however I need to get the user ID for the session too: submit(){ var link = 'http://localhost:1337/usuario?email='+ this.usuario.email + '&senha='+ this.usuario.senha; var data = JSON.stringify({ email: t...
asked by 29.03.2018 / 18:47
1
answer

Assign a value to a variable in a controller and not modify the value of the $ scope variable

I would like to know why when I assign the value to a variable within a controller from a $ scope variable and change the value of that variable, the value of the $ scope variable is also changed. For example: $scope.viagem.valorFrete = 1.500,...
asked by 11.03.2018 / 02:42
1
answer

ionic 3 - AdMob is experiencing an error while placing it in APP

When I put AdMob in my ionic application it looks like the picture below: What would be the mistake to not be showing ads? Code I use: displayBanner() { if (this.platform.is('cordova')) { const bannerConfig: AdMobFreeBannerConfig = {...
asked by 24.02.2018 / 14:18
2
answers

Regex to leave first letter of full name capitalized, even with special character [duplicate]

I have the following variable in $ scope of Angular JS, with an arrow function: $scope.cad.nome.toLowerCase().replace(/\b\w/g, l => l.toUpperCase()); I need to format your content, which is someone's full name. It is working until the...
asked by 23.02.2018 / 18:29