您需要创建一个指令来做到这一点.您可以从
snap.js(
Angular-Snap)开始.
<snap-drawer> I'm in a drawer! </snap-drawer> <snap-content> I'm your main content! </snap-content>