I am trying to add input checkbox with object.text - using jade template. But I not able to add that. I am getting simply the text instead input element. how to solve this:
doctype 5
html(lang="en", ng-app)
head
title hellow there
link(rel='stylesheet', href='styles/style.css')
body
h1 Jade - node template engine
#container(ng-controller="todoController")
span {{rest}}
ul
li(ng-repeat='todo in todos') input(type='checkbox') {{todo.text}}
script(src='js/lib/angular/angular.js')
script(src='js/lib/underscore/underscore-min.js')
script(src='js/app.js')
the output i am getting is:
input(type='checkbox') Good Morning //no input box displays
input(type='checkbox') Good after Noon //no input box displays
any one find me the wrong what i do here please?
EDIT
It was not clear, but now i think you are tring to do something like this:
li(ng-repeat='todo in todos')
input(type='checkbox', name="p", id="p")label(for="p")|pip
from http://fiddlesalad.com/jade/
