Skip to content

Commit c761b3e

Browse files
committed
Meteor+Blade integration in Angular
1 parent 14c23c7 commit c761b3e

File tree

13 files changed

+17696
-0
lines changed

13 files changed

+17696
-0
lines changed

example/.meteor/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
local

example/.meteor/packages

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Meteor packages used by this project, one per line.
2+
#
3+
# 'meteor add' and 'meteor remove' will edit this file for you,
4+
# but you can also edit it by hand.
5+
6+
autopublish
7+
insecure
8+
preserve-inputs
9+
ng
10+
stylus
11+
coffeescript
12+
blade

example/client/css/style.styl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
body
2+
background #DDD
3+

example/client/example.coffee

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
angular.element(document).ready ->
2+
angular.bootstrap document, ['app']
3+
4+
app = angular.module 'app', ['ngMeteor'], ($routeProvider) ->
5+
$routeProvider.when '/',
6+
templateUrl: 'welcome.blade'
7+
$routeProvider.when '/more',
8+
templateUrl: 'more.blade'

example/views/body.blade

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
header.navbar
2+
nav.navbar-inner
3+
a.brand(href='#/') ngMeteor
4+
5+
article.container-fluid
6+
.hero-unit
7+
h1 Welcome!
8+
p
9+
! Isn't it cool?
10+
Angular + Meteor with Coffeescript, Stylus and <strong>Blade</strong>
11+
12+
p.well(ng-view)

example/views/head.blade

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
title ngMeteor Example

example/views/more.blade

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
strong This is more.

example/views/welcome.blade

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
h1 Example page!
2+
| This is a blade template working with Angular.
3+
a(href='#/more') Check some more

0 commit comments

Comments
 (0)