WHY MY ng-click DON'T WORKING?

Criar conta

BELOW MY index.html

Minha Pelada picapau amarelo(domingo)

Criar conta Entrar com Facebook Já tem uma Conta? Clique aqui para Entrar em MinhaPelada

AND BELOW MY App.js

// Ionic Starter App

// angular.module is a global place for creating, registering and retrieving Angular modules
// ‘starter’ is the name of this angular module example (also set in a attribute in index.html)
// the 2nd parameter is an array of 'requires’
angular.module(‘starter’, [‘ionic’])

.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
//Ita - 22/02/2017 - Primeiro Parâmetro(‘APPLICATION_ID’), Segundo Parâmetro (JAVASCRIPT_KEY’)
Parse.initialize(‘USiqtSJIIvfWQwbmDyNsoXsrbTMWmCglaUcKHLmn’, ‘IaIq7yPZU8vgrCwS1Q7Vee4vdL4ky5tNd2nqZfXw’);
if(window.cordova && window.cordova.plugins.Keyboard) {
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
// for form inputs)
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);

// Don’t remove this line unless you know what you are doing. It stops the viewport
// from snapping when text inputs are focused. Ionic handles this internally for
// a much nicer keyboard experience.
cordova.plugins.Keyboard.disableScroll(true);
}
if(window.StatusBar) {
StatusBar.styleDefault();
}
});
})

example.controller(“ExampleController”, function($scope) {

$scope.savePerson = function(username, senha) {
var PeopleObject = Parse.Object.extend(“PeopleObject”);
var person = new PeopleObject();
person.set(“username”, username);
person.set(“senha”, senha);
person.save(null, {});
};

});

$scope.getPeople = function(params) {
var PeopleObject = Parse.Object.extend(“PeopleObject”);
var query = new Parse.Query(PeopleObject);
if(params !== undefined) {
if(params.lastname !== undefined) {
query.equalTo(“senha”, params.senha);
}
if(params.firstname !== undefined) {
query.equalTo(“username”, params.username);
}
}
query.find({
success: function(results) {
alert(“Successfully retrieved " + results.length + " people!”);
for (var i = 0; i < results.length; i++) {
var object = results[i];
console.log(object.id + ’ - ’ + object.get(“username”) + " " + object.get(“senha”));
}
},
error: function(error) {
alert("Error: " + error.code + " " + error.message);
}
});
};

SOMEONE HELP ME PLEASE!
I’M VERY NEW IN IONIC AND CORDOVA!

I cannot see where you used ng-click, it might be in index.html, but that is all white for me.

Btw, if there is a lot of code involved, please format it by using backticks (`) or even better a jsfiddle.

Hi zwacky, first of all, thank’s for you attention

Below is my index.html …
Can do you see now?

<link rel="manifest" href="manifest.json">

<!-- un-comment this code to enable service worker
<script>
  if ('serviceWorker' in navigator) {
    navigator.serviceWorker.register('service-worker.js')
      .then(() => console.log('service worker installed'))
      .catch(err => console.log('Error', err));
  }
</script>-->

<link href="lib/ionic/css/ionic.css" rel="stylesheet">
<!-- GetFont -->
<link href="css/font.css" rel="stylesheet">
<!-- End GetFont -->
<link href="css/style.css" rel="stylesheet">

<!-- IF using Sass (run gulp sass first), then uncomment below and remove the CSS includes above
<link href="css/ionic.app.css" rel="stylesheet">
-->

<!-- ionic/angularjs js -->
<script src="lib/ionic/js/ionic.bundle.js"></script>


<!-- cordova script (this will be a 404 during development) -->
<script src="cordova.js"></script>
 <!-- your app's js -->
<script src="js/app.js"></script>
<!--Ita - 22/02/2017 - Parse -->
<script src="js/parse.min.js"></script>

Minha Pelada picapau amarelo(domingo)

Criar conta Entrar com Facebook Já tem uma Conta? Clique aqui para Entrar em MinhaPelada

Hi zwacky!
Here is image of my index.html and app.js
Can do you see now?

you have to add ngController directive to attach your view with your controller

<body ng-app="starter" ng-controller="ExampleController">

Hi thesourav, thank’s for you attention

I do that and when clicked on button nothin happens!

Do you have any idea?

in your template you wrote SavePerson(Username, Senha), but in your controller it is lowercase savePerson(...).

zwacky,
I did that also, but nothing yet

Below is begin part of my index.html

And below is begin part of my App.js

Ops, I’m sorry!

Below is begin part correct of my App.js

You have to check for console errors and see whats happening

Ok!, but where is that ?

run ionic serve and choose localhost…opens up in chrome and go to dev tools->console

thesourav
I did,
Now do you have any idea what I have to fix?

You haven’t defined example properly. Do it like this

    var example = angular.module('starter',[]);
    example.controller(