Posts by Guilherme Patriarca • 123 points
9 posts
-
1
votes1
answer60
viewsA: How to delete a JSON within an Array in localStorage()
You should pass an argument like id or noteId to know which id to remove function deleteNote(id) { const data = JSON.parse(localStorage.getItem('notes')).filter(item => item.noteId !== id)…
-
0
votes3
answers485
viewsA: Routing problem after final build in angular 2
Simple if you have to put in a folder use : ng build --base-href /myUrl/ or ng build --bh /myUrl/ For example I have to put the site in a directive called site2 then ng build --bh /site2/ More…
-
0
votes1
answer81
viewsA: Angular forms 2
Through the bridge <button (click)="form2 = !form2">Mudar</button> <input type="text" placeholder="email" *ngIf="form2"> <input type="text" placeholder="form2 Email"…
angularanswered Guilherme Patriarca 123 -
1
votes1
answer256
viewsA: Materialize and Slider in Angular2
At angular cli you do not add the style to the index, you have to go to the angular-cli.json file and at : "styles": ["../node_modules/materialize-css/dist/css/materialize.css"] and in the scripts:…
-
0
votes3
answers417
viewsA: Access different objects from a Json with Angularjs
Your Json has syntax errors { "status":"ok", "count":10, "count_total":54, "pages":6, "posts":[ { "id":2625, "type":"post", "slug":"uma-feliz-pascoa-para-voce",…
-
1
votes2
answers80
viewsA: How do I put email in the login form?
How Parazito Responded: .controller('loginCtrl', function($scope){ // define no email [email protected] $scope.usuario = { "email":"[email protected]" }
-
0
votes1
answer254
viewsA: Problem With Internet Explorer I don’t have in Chrome and Firefox
As far as I could tell, it had to do with the Torage site I used this plugin: https://github.com/grevory/angular-local-storage It just got to work. Thank you…
-
0
votes1
answer254
viewsQ: Problem With Internet Explorer I don’t have in Chrome and Firefox
In Internet Explorer appears to me: Access denied in this Scope: $scope.login = { "user": window.localStorage.getItem("username"), "check": window.localStorage.getItem("valor"), "lingua":…
-
3
votes2
answers344
viewsQ: $Http Which one should I use?
The $http has two examples. I would like you to help me because I don’t know which is the most useful There is the : var chamada = function () { return $http.get('https:url/exemplo.json')…