Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ng-include 后如何读取 ng-include 中的内容呢? #1

Open
dotku opened this issue Jan 15, 2016 · 0 comments
Open

ng-include 后如何读取 ng-include 中的内容呢? #1

dotku opened this issue Jan 15, 2016 · 0 comments

Comments

@dotku
Copy link

dotku commented Jan 15, 2016

@lxjwlt

我是在这里看到你写的文章的
https://www.zybuluo.com/lxjwlt/note/107324

有一个问题不是太明白(看完官方网站也是不懂),所以问一下,先看一下这个代码

HTML

JavaScript

.controller('myCtrl', function(){
console.log($(".ng-scope").html());
})

这里 include 是正常的,会产生一个 class 为 ng-scope 的内容
我想要读取这个内容,发现是无法读取到的,怎么处理?

谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant