我是angularjs的新手。我正在处理孤立的范围。使用隔离范围的双向绑定不起作用。请检查我的代码。如果我删除年龄:' ='然后我的代码工作正常。
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider
class MySpider(CrawlSpider):
name = 'myspider'
le = LinkExtractor()
rules = [Rule(le, callback='parse_page')...]
def parse_page(self, response):
items = #parse items
for item in items:
yield item
ajax_url = #find ajax url for next page or something
if ajax_url:
yield Request(ajax_url, self.parse_ajax)
def parse_ajax(self, response):
links = self.le.extract_links(response)
for link in links:
yield Request(link.url, self.parse_page)
答案 0 :(得分:2)
应该是:
<div ng-controller="homeCtrl">
<my-dir name="name" age="age"></my-dir>
</div>
答案 1 :(得分:1)
删除{{}}
仅使用age="age"