Created
June 26, 2015 00:47
-
-
Save DinisCruz/de3a36d61d0d4b53f084 to your computer and use it in GitHub Desktop.
Angular 1.4 with Jade with coffee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
doctype html | |
html(lang="en") | |
head | |
meta(charset="utf-8") | |
title Test | |
script(src='https://ajax.googleapis.com/ajax/libs/angularjs/1.4.1/angular.js') | |
script(src='http://coffeescript.org/extras/coffee-script.js') | |
style. | |
input { width: 200px } | |
script(type='text/coffeescript'). | |
app = angular.module('App', []) | |
app.controller 'TestController', ($scope)-> | |
$scope.name = 'Angular 1.4 with Jade with coffee' | |
angular.bootstrap document, ["App"] | |
body | |
div | |
div(ng-controller="TestController") | |
h2 {{name}} | |
hr | |
input(type="text" ng-model="name" ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment