(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| import Inferno from 'inferno' | |
| import Component from 'inferno-component' | |
| import {connect} from 'cerebral/inferno' | |
| import {state} from 'cerebral/tags' | |
| import InvalidRoute from './InvalidRoute' | |
| export default connect({ | |
| media: state`useragent.media`, | |
| invalidRoute: state`app.invalidRoute` | |
| }, |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| <h1>Alert</h1> | |
| <p>Bootstrap JS</p> | |
| <div class="alert fade in"> | |
| <button type="button" class="close" data-dismiss="alert">×</button> | |
| <strong>Holy guacamole!</strong> Best check yo self, you're not looking too good. | |
| </div> | |
| <p></p><a ng-click="alert=true">Open Alert (AngularJS)</a></p> | |
| <div class="alert fade" ng-class="{in:alert}"> | |
| <button type="button" class="close" ng-click="alert=false">×</button> |
| // Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
| // jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
| // author: Pawel Kozlowski | |
| var myApp = angular.module('myApp', []); | |
| //service style, probably the simplest one | |
| myApp.service('helloWorldFromService', function() { | |
| this.sayHello = function() { | |
| return "Hello, World!" |