Run
Online Code Editor
AngularJS Dependency Injection
AngularJS Sample Application
Enter a number:
X
2
Result: {{result}}