IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

AngularJS Discussion :

Erreur firebase et angularfire


Sujet :

AngularJS

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Homme Profil pro
    symfony2
    Inscrit en
    Mars 2016
    Messages
    124
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 33
    Localisation : Tunisie

    Informations professionnelles :
    Activité : symfony2

    Informations forums :
    Inscription : Mars 2016
    Messages : 124
    Par défaut Erreur firebase et angularfire
    Salut, j'installe angularfire et firebase avec bower mais je trouve ce probléme

    Nom : GKwZd.png
Affichages : 129
Taille : 118,6 Ko


    et quand il click sur le probléme d'angualrfire


    Nom : LyrEH.png
Affichages : 146
Taille : 38,1 Ko

    code app.js

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
              var app = angular.module('myApp', ['ui.router','ionic'])
     
              .run(function($ionicPlatform) {
                $ionicPlatform.ready(function() {
                  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();
                  }
                });
              })
     
     
              // Initialize Firebase
                .config(function() {
              var config = {
                apiKey: "mon api",
                authDomain: "mon domaine",
                databaseURL: "mon db",
                storageBucket: "storage",
                messagingSenderId: "..."
              };
              firebase.initializeApp(config);
     
                })
     
     
              app.config(['$stateProvider','$urlRouterProvider', function($stateProvider,$urlRouterProvider) {
                $stateProvider.state("home",{ url : "/home", templateUrl : "templates/home.html" , controller: "HomeCtrl"});
                $stateProvider.state("Inscription",{ url : "/inscription", templateUrl : "templates/inscription.html" , controller: "InscriCtrl"});
                $stateProvider.state("listmsg",{ url : "/listmsg", templateUrl : "templates/list.html" , controller: "ListCtrl"});
                $stateProvider.state("msg",{ url : "/msg", templateUrl : "templates/msg.html" , controller: "MsgCtrl"});
     
                $urlRouterProvider.otherwise("home");
              }]);
     
     
              app.controller('HomeCtrl', [,'$firebaseSimpleLogin',function($scope,$firebaseSimpleLogin) {
     
                var firebaseObj = new Firebase("https://appsfactor-68466.firebaseio.com");
                var loginObj = $firebaseSimpleLogin(firebaseObj);
     
                $scope.SignIn = function(event) {
                  event.preventDefault();  // To prevent form refresh
                  var username = $scope.user.email;
                  var password = $scope.user.password;
     
                  loginObj.$login('password', {
                      email: username,
                      password: password
                    })
                    .then(function(user) {
                      // Success callback
                      console.log('Authentication successful');
                    }, function(error) {
                      // Failure callback
                      console.log('Authentication failure');
                    });
                }
     
     
              }]);
     
     
              app.controller('InscriCtrl', [function() {
     
              }]);
     
              app.controller('ListCtrl', [function() {
     
              }]);
     
              app.controller('MsgCtrl', [function() {
     
              }]);
    code index.html

    Code html : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
              <!DOCTYPE html>
              <html>
                <head>
                  <meta charset="utf-8">
                  <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
                  <title></title>
     
                  <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>-->
     
                  <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
     
                  <link rel="icon" href="http://getbootstrap.com/favicon.ico">
                  <link href="http://getbootstrap.com/dist/css/bootstrap.min.css" rel="stylesheet">
                  <link href="http://getbootstrap.com/examples/signin/signin.css" rel="stylesheet">
     
                          <!-- AngularFiionic servere -->
                  <script src="lib/firebase/firebase.js"></script>
     
                  <script src="lib/angularfire/dist/angularfire.js"></script>
     
     
     
                  <link href="lib/ionic/css/ionic.css" rel="stylesheet">
                  <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>
                  <script src="lib/ionic/js/angular-ui/angular-ui-router.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>
                </head>
                <body ng-app="myApp">
     
                <ion-side-menus>
     
                  <ion-side-menu-content>
     
     
                      <ion-nav-bar class="bar-calm">
                        <ion-nav-buttons>
                            <button menu-toggle="left" class="button button-icon ion-navicon">
     
                            </button>
                        </ion-nav-buttons>
                      </ion-nav-bar>
     
                      <ion-nav-view>
     
                      </ion-nav-view>
     
                  </ion-side-menu-content>
     
                      <ion-side-menu side="left">
     
                        <ion-item menu-close ui-sref="home">Acceuil</ion-item>
                        <ion-item menu-close ui-sref="Inscription">Inscription</ion-item>
                        <ion-item menu-close ui-sref="listmsg">Listes Messages</ion-item>
                        <ion-item menu-close ui-sref="msg">Message</ion-item>
     
                      </ion-side-menu>
     
                  </ion-side-menus>
     
     
     
                </body>
              </html>



    quelle est la solution et merci

  2. #2
    Modérateur

    Avatar de NoSmoking
    Homme Profil pro
    Inscrit en
    Janvier 2011
    Messages
    17 207
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Isère (Rhône Alpes)

    Informations forums :
    Inscription : Janvier 2011
    Messages : 17 207

Discussions similaires

  1. Auth Firebase AngularFire => rôle
    Par rioll dans le forum AngularJS
    Réponses: 0
    Dernier message: 27/03/2015, 16h59
  2. Erreur fréquente avec ASP et IIS
    Par Community Management dans le forum ASP
    Réponses: 2
    Dernier message: 11/02/2004, 22h20
  3. Réponses: 2
    Dernier message: 27/05/2002, 19h46
  4. erreur IDL:omg.org/CORBA/MARSHAL:1.0
    Par Pinggui dans le forum CORBA
    Réponses: 3
    Dernier message: 13/05/2002, 15h05
  5. [Kylix] Erreur objet
    Par Anonymous dans le forum EDI
    Réponses: 1
    Dernier message: 22/03/2002, 09h41

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo