Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.
/ ng-include-scope Public archive

A simple AngularJS directive that allows you to specify the scope for an ngInclude

License

Notifications You must be signed in to change notification settings

drgould/ng-include-scope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ngIncludeScope

A simple AngularJS directive that allows you to specify the scope for an ngInclude.
Demo

##How to use Install via bower:

bower install --save ng-include-scope

Include drg.ngIncludeScope as a dependency in your app:

angular.module('app', ['drg.ngIncludeScope'])

Use the ng-include-scope attribute to bind an object to the scope of an ng-include:

<div ng-include="'tpl.html'" ng-include-scope="newScope"></div>

or use ng-include-isolate-scope if you want to bind it as a pseudo-isolate scope:

<div ng-include="'tpl.html'" ng-include-isolate-scope="newScope"></div>

License: MIT

About

A simple AngularJS directive that allows you to specify the scope for an ngInclude

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published