Here is a AngularDart component in a page.
<body>
<testcomponent></testcomponent>
<p>Should have value {{testcomponent.test}}</p>
</body>
The component has a NgOneWay of
@NgOneWay("test")
String test = "HELLO";
This does not work as no value is shown on the page. The component can show its NgOneWay within the components HTML but I wish to access it outside of the components HTML on the page where the component is used.
Is there any way to show the components NgOneWay on the page in which the component is being used?
Here is my test code. http://www.topazbooking.com/test2.zip
I am using Dart 1.5.1
Ok I understand its not a good practice, it creates a dependancy between the page using the component and the component itself. The problem I have is that I use some javascript which doesn't work within the component, that's a different problem ... I shouldn't explain here but I was trying to use the view only and not component as my js worked in the view but not in the component.