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-scopeInclude 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