FAQ
Hi people,

I'm looking for a very simple SimpleLogin with email/password controller.

Right now, I have a very simple application with 2 states(views) and a
controller that returns a value. That's it ;)

I did read some documentation and exemple, but it seems they are all
different. Also, looks like the API did change since some of them were
post.

Conclusion: The beginner I am is totally confused.

More details below ... any have a very simple example on how I can add a
controller / view to use the simpleLogin with email/password feature.

Thanks so go, appreciated, really.
- Martin wishes you a good week-end.

Here's the js I load in my index.html. I do believe they are the latest
version.

  <script src="bower_components/angular/angular.js"></script>
   <script
src="bower_components/angular-ui-router/release/angular-ui-router.js"></script>

   <script src="bower_components/angular-route/angular-route.js"></script>
   <script src="bower_components/jquery/dist/jquery.min.js"></script>
   <script
src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
   <script src='//cdn.firebase.com/js/client/1.0.17/firebase.js'></script>
   <script
src="//cdn.firebase.com/js/simple-login/1.6.1/firebase-simple-login.js"></script>
   <script
src="//cdn.firebase.com/libs/angularfire/0.7.1/angularfire.min.js"></script>

I add the firebase to my app module:
angular.module('myApp', [
   'firebase',
   'ui.router',
   'myApp.filters',
   'myApp.services',
   'myApp.directives',
   'myApp.controllers'
]).

And here's an example of my current controller (controller.js)
angular.module('myApp.controllers', [])
   .controller('MyCtrl1', ['$scope', function($scope) {
    $scope.myname = "Martin";

And the ui-router (apps.js)
config(function($stateProvider, $urlRouterProvider) {
   //
   // For any unmatched url, redirect to /state1
   $urlRouterProvider.otherwise("/state1");
   //
   // Now set up the states
   $stateProvider
     .state('state1', {
       url: "/state1",
       templateUrl: "partials/partial1.html",
       controller: "MyCtrl1"
     })

--
You received this message because you are subscribed to the Google Groups "Firebase + AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-angular+unsubscribe@googlegroups.com.
To post to this group, send email to firebase-angular@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-angular/20054032-0ccb-4b32-b4e3-8a1342745fd4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupfirebase-angular @
postedJul 23, '14 at 11:31a
activeJul 23, '14 at 11:31a
posts1
users1

1 user in discussion

Martin C.: 1 post

People

Translate

site design / logo © 2021 Grokbase