+ 7
AngularJS does work in the playground. If you kindly provide more details regarding the error (or the code itself) we may be able to help.
18th Apr 2020, 9:08 PM
Burey
Burey - avatar
+ 4
1) changed ng-app="radio" to ng-app 2) changed ng-bind="station" to ng-model="station" in the input element 3) removed 2nd ng-bind in the span element 4) added {{station}} inside the span tag so it can be displayed in the view https://code.sololearn.com/WvcDBK63C3e9/?ref=app
21st Apr 2020, 10:41 PM
Burey
Burey - avatar
+ 2
I think it's because you define ng-app="radio" without defining a radio module in javascript to control it (i'm really rusty in AngularJS) Try following these lessons, and play around with the examples: https://www.sololearn.com/learn/1017/?ref=app you can also look around for examples in the code playground: https://code.sololearn.com/WRtLA8r2uzWy/?ref=app https://code.sololearn.com/WaAAK4bi8KuY/?ref=app https://code.sololearn.com/WfM7KYj8DwJm/?ref=app
21st Apr 2020, 10:29 PM
Burey
Burey - avatar