Is it possible to do reusable snippets within AngularJS templates?

前端 未结 2 559
粉色の甜心
粉色の甜心 2020-12-29 21:59

I\'m finding myself repeating the same snippets of code again and again, is it possible to do something like this in AngularJS:

2条回答
  •  无人及你
    2020-12-29 22:07

    This sounds like you want to use directives. Here is a simple example: http://jsfiddle.net/gyF6V/1/

提交回复
热议问题