Skip to content

Instantly share code, notes, and snippets.

@DinisCruz
Created July 1, 2015 05:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DinisCruz/14d79674dd2a30e66d31 to your computer and use it in GitHub Desktop.
Save DinisCruz/14d79674dd2a30e66d31 to your computer and use it in GitHub Desktop.
PoC of Angular, Jade and CoffeeScript (with auto compile)
extends ../../../TM_Jade/_layouts/page_logged_out.jade
block content
script(src='/angular/js/lib.js')
#application
.row
.col-3
.col-3
div(ng-controller="TestController")
h1 {{title}}
input(type="text" ng-model="title" )
script(type='text/coffeescript').
app = angular.module('App', [])
app.controller 'TestController', ($scope)->
$scope.title = 'this is from the controller :)'
angular.bootstrap document, ["App"]
QA_TM_Design = require '../API/QA-TM_4_0_Design'
describe '| flare | pages-anonymous.test |', ->
page = QA_TM_Design.create(before, after);
it.only '/angular/html/index', (done)->
page.open '/angular/html/index.html',->
done()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment