0

Help me to solve this code. The images are not showing..! (using angularjs)

<!DOCTYPE html> <html> <head></head> <body ng-aap=""> <h3>Angular JS Programming</h3> <hr/> <div ng-init=" x='image1.jpg'"> Select a Image: <select ng-model="x"> <option>image1.jpg</option> <option>image2.jpg</option> <option>image3.jpg</option> <option>image4.jpg</option> </select> <br/> <img src="images/{{x}}" width="300" height="200" border="5" /> </div> <script src="angular.js"> </script> </body> </html>

19th May 2017, 1:24 PM
Yash Z Das
Yash Z Das - avatar
3 Answers
+ 1
<body ng-app="">
19th May 2017, 1:31 PM
CalviŐ˛
CalviŐ˛ - avatar
0
while i tried for inspect element on chrome, why this error was not detected..?? @Calvin
19th May 2017, 1:33 PM
Yash Z Das
Yash Z Das - avatar
0
You need ng-inspector, a chrome extension to debug angular js.
19th May 2017, 1:38 PM
CalviŐ˛
CalviŐ˛ - avatar