Giter Site home page Giter Site logo

scottalankrieger / meteor-famous-angular Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sschepis/meteor-famous-angular

0.0 2.0 0.0 204 KB

Seamless Famo.us animations in any device and super-heroic AngularJS front-end MVW framework in your Meteor realtime distributed app.

License: Mozilla Public License 2.0

meteor-famous-angular's Introduction

Meteor + Famo.us + Angular = Splendsome

Splendsome brings Famo.us/Angular and Meteor together. Using Splendsome, you get:

  • Famo.us seamless cross-device rendering.
  • AngularJS modules, directives, controllers, services and scope.
  • Meteor distributed realtime collections.

Therefore, you can:

  • Create Famo.us components and animations using AngularJS directives.
  • Make AngularJS models synchronized worldwide through Meteor's client/cloud platform.
  • Focus in the application instead of boilerplate Ajax / REST management using $http, $resource or other.

Read more on the project pages:

These libraries are under active development. While it is possible to create powerful and stable apps, some things are expected to change as they move forward.

Quick start

  1. Install git sudo apt-get install git in Debian/Ubuntu or follow their instructions
  2. Install Meteor curl https://install.meteor.com | /bin/sh
  3. Install Meteorite npm install -g meteorite
  4. Create a new meteor app using meteor create myapp and/or navigate to the root of your new/existing app.
  5. Add ngMeteor package mrt add ngMeteor
  6. Add famono package mrt add famono
  7. Add splendsome package mrt add splendsome

Running (using Splendsome in your Meteor app)

To unleash the power of this fantastic combo, you need to:

  • Require splendsome
  • Use the angular module famous.angular as a dependency of your own angular module
  • Push your module into ngMeteor

Super easy:

if (Meteor.isClient)
{
  require('splendsome');
  angular.module('myModule', ['famous.angular']);
  ngMeteor.requires.push('myModule');
}

And you can start coding like this right away in your templates:

<template name="hello">

  <h1>Hello World!</h1>
  <p>{{ greeting }}</p>

  <input ng-model="text" />
  <p>[[ text ]]</p>

  <fa-app style="height: 200px">
      <fa-surface fa-background-color="'red'" fa-size="[108, 108]">
          Hello world
      </fa-surface>
  </fa-app>

</template>

In this example you have:

  1. a common Blaze / Spacebars live data template (read more)
  2. a simple usage of ngModel directive providing 2-way data binding (read more)
  3. a Famo.us/Angular Surface directive with 'Hello world' on a red background (read more)

Have fun!

meteor-famous-angular's People

Contributors

jbruni avatar

Watchers

Scott Krieger avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.