Bonjour,
Suite au passage en version 1.8 j’ai mis à jour mon site angular :
var panelApp = angular.module('panelApp', ['ngConstellation']) .controller('PanelController', ['$scope', 'constellationConsumer', function ($scope, constellation) { // Initialisation constellation.intializeClient("http://adresse_ip", "Clé", "Test"); $scope.TestMessage = function () { constellation.sendMessage({ Scope: 'Package', Args: ['Autoremote'] }, 'SendNotif', '[ Target : "Nexus", Title : "Test", Message : "Test" ]'); alert('lol'); }; // Connexion à la Constellation constellation.connect(); }]);
Mais ma fonction TestMessage ne fait rien. Dans mon html j’ai :
<button ng-click="TestMessage()">Test</button>
Et mon body contient :
<body ng-app="panelApp">
Donc aucune notification sur mon portable (ça fonctionne par la console Constellation) et rien dans les logs de Chrome.
Une idée de mon erreur ?
Merci