阅读背景:

AngularJS指令在使用隔离范围时不将值插入模板

来源:互联网 

Given the following directive:

给出以下指令:

angular.module('news.directives', [])
    .directive('newsArticle', function($location, $timeout) {
        return {
            restrict:    'AE',
            replace:     'true',
            templateUrl: 'partials/pages/news/directives/article.html',
            scope:       true
        };
    });
angu



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: