خرید بک لینک

Vote count: 0

At app.js I have a constant and a custom filter definition. The constant object must be used at the filter but I have an error 'statusInfo is not defined' when I try to reference the constant object at the filter.

Please where is my mistake ?

var myApp = angular.module('myApp', ['ngRoute'])
myApp.constant('statusInfo', {
status1: 1 ,
status1: 2 ,
status1: 3

})

myApp.filter('myCustomFilter', function () {

console.log('Status ', statusInfo ) // Here I have the error. ...my code... }

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 13 فروردين 1395 ساعت: 5:52

صفحه بندی