I'm writing a tutorial website for angularjs using angularjs and I have a lot sections of sample code.
So I have a bunch of
I want to put the code samples in a separate files but
doesn't work on
tags. How would I put html code samples in separate files?
Small side question: what would you name the folder of those files?
I've tried this solution:
But it doesn't seem to work because the sample doesn't stay preformatted for newlines and tabs and I don't know why it doesn't work. Here's my attempt using the previous solution: