0

I've just set up my angularjs env using all ~1.2 libs of angular

  • angular v1.2.0rc1
  • angular-animate v1.2.0-rc.2
  • angular-route v1.2.0-rc.2

Setup:

angular.module('App', ['ngRoute', 'ngLocale', 'ngAnimate'])

And I am seeing this error once I include ngAnimate into my app module

TypeError: Object #<Object> has no method '$$postDigest'
at Object.angular.module.config.$provide.decorator.enter 

angular-animate/angular-animate.js:292:22

And the Object # is in reference to $rootScope.

Any suggestions would be welcome.


How to get the Permanent MAC Address

I am writting a script in bash that detect all interfaces and change their MAC to another one random. I need to know where can I find the permanent MAC of interfaces.

If I use ifconfig $interface, the output is not a real MAC... (the same with cat /sys/class/net/$interface/address

The only way that I found was with cat /etc/udev/rules.d/70-persistent-net.rules, it show the original mac, but, if I have a wireless card in monitor mode (mon0 for example), this method will not work... :(

Exist some method (like macchanger -s $interface), where I can see my permanent MAC with virtual interface??

Note: Sorry for my bad english :S

4

1 回答 1

0

原来,角度 v1.2.0rc1 是问题所在;由于某种原因,我的凉亭配置没有正确更新 angulars 库。

老的:

{
  "name": "App",
  "version": "0.0.1",
  "dependencies": {
    "angular": "~1.2",
    "angular-route": "~1.2",
    "angular-route": "~1.2",
    "json3": "~3.2.4",
    "es5-shim": "~2.0.8"
  },
  "devDependencies": {
    "angular-mocks": "~1.2",
    "angular-scenario": "~1.2"
  }
}

新的:

{
  "name": "App",
  "version": "0.0.1",
  "dependencies": {
    "angular": "1.2.0-rc.2",
    "angular-route": "1.2.0-rc.2",
    "angular-animate": "1.2.0-rc.2",
    "json3": "~3.2.4",
    "es5-shim": "~2.0.8"
  },
  "devDependencies": {
    "angular-mocks": "1.2.0-rc.2",
    "angular-scenario": "1.2.0-rc.2"
  }
}

干杯!

于 2013-09-12T15:18:29.547 回答