Skip to content
Robby Ronk edited this page Jul 16, 2013 · 1 revision

Block naming conventions:

  • ends with "Content" if it's a piece of content. (Not a question)
  • ends with "Question" if it's a not a profile question.
  • ends with "Profile" if it's a profile question.

Create a new directive using the name of the block. yo angular:directive <name>

Create a new view using the name of the block. yo angular:view <name>

Change the directive to use the view: templateUrl: 'views/<name>.html'

Change the directive to be restricted to an element. restrict: 'E'

Clone this wiki locally