我正在尝试通过$ scope发送当月的第一个日期。$ emit from directive。但$ scope。在父控制器中获取结束日期。
[user@server]$ gnuplot 2> err.txt
gnuplot> Hi!
gnuplot> exit
[user@server]$ cat err.txt
G N U P L O T
Version 5.0 patchlevel 1 last modified 2015-06-07
Copyright (C) 1986-1993, 1998, 2004, 2007-2015
Thomas Williams, Colin Kelley and many others
gnuplot home: http://www.gnuplot.info
faq, bugs, etc: type "help FAQ"
immediate help: type "help" (plot window: hit 'h')
Terminal type set to 'aqua'
^
invalid command
这里我发送的是当月第一个日期(08-01-2016)的时刻对象。
$scope.$emit('sample',$scope.month, $element)
这是收到月份的结束日期。
是否与范围问题有关?
更新:
This是$ scope。$ on function
中月份对象的屏幕截图