You have to inject Math
into your scope, if you need to use it as
$scope
know nothing about Math.
Simplest way, you can do
$scope.Math = window.Math;
in your controller.
Angular way to do this correctly would be create a Math service, I guess.
More Related Contents:
- How to cancel an $http request in AngularJS?
- How can I dynamically add a directive in AngularJS?
- Combating AngularJS executing controller twice
- Difficulty with ng-model, ng-repeat, and inputs
- How to access cookies in AngularJS?
- AngularJS vs Angular [closed]
- AngularJS – How to structure a custom filter with ng-repeat to return items conditionally
- Can I use ng-model with isolated scope?
- AngularAMD + ui-router + dynamic controller name?
- how to inject dependency into module.config(configFn) in angular
- AngularJS : $q -> deferred API order of things (lifecycle) AND who invokes digest?
- Sharing data between directives
- Using ng-app without a value
- Angular JS resizable div directive
- Angularjs: ng-options group by
- Filter by multiple columns with ng-repeat
- Angular scope function executed multiple times
- How to wait till the response comes from the $http request, in angularjs?
- Should I care about W3C validation?
- Compare objects in Angular
- How do I prevent reload on named view, when state changes? AngularJS UI-Router
- Is it possible to use ng-include without web server?
- How to set the value attribute for select options?
- AngularJS: How to nest applications within an angular app
- Call Angular Function with Jquery
- AngularJS – why is $apply required to properly resolve a $q promise?
- $sce.trustAsResourceUrl() globally
- How do I filter an array with AngularJS and use a property of the filtered object as the ng-model attribute?
- Auto logout with Angularjs based on idle user
- Angularjs – Hide content until DOM loaded