Example usage:
Layout.helper("modal", function (options) {
return {
bgcolor: options.bgcolor || "#fff",
layout: options.layout || "modalLayout"
};| if (Meteor.isClient) { | |
| Template.hello.events({ | |
| 'click .github': function() { | |
| // initiate the OAuth process: | |
| // ask for the desired permissions | |
| // run the callback after the user authorizes the app | |
| // https://github.com/meteor/meteor/blob/devel/packages/github/github_client.js#L8 | |
| Github.requestCredential({ | |
| loginStyle: 'popup', | |
| requestPermissions: ['gist'] |
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| concat: { | |
| options: { | |
| separator: ';' | |
| }, | |
| dist: { | |
| src: ['src/**/*.js'], | |
| dest: 'dist/<%= pkg.name %>.js' |
| var demoApp = angular.module('demoApp', ['ngResource'], function($locationProvider) { | |
| $locationProvider.hashPrefix(''); | |
| }); | |
| function MainCtrl($scope, Serv) { | |
| $scope.selectedItem = { | |
| value: 0, | |
| label: '' | |
| }; | |
| $scope.Wrapper = Serv; |