Skip to content

Instantly share code, notes, and snippets.

@gabrielem
gabrielem / truffle_angular_postpone_bootstrap.md
Created December 2, 2016 20:19 — forked from mpolci/truffle_angular_postpone_bootstrap.md
Postponed AngularJS bootstrap for Truffle since version 2.0.8

Truffle since release 2.0.8 delays the initialization of the global variable web3 after the load event, so this variable is not available during angular bootstrap, inside a .config() section, inside providers and neither inside the controllers initialized at load time and related injected services.

Accessing to the web3 variable inside a setTimeout() call could be a solution for simple projects but the only way to be sure that web3 is initialized is to postpone the angular bootstrap.

Looks at the code below:

@gabrielem
gabrielem / php.ini
Created September 22, 2013 19:37 — forked from rkmax/php.ini
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order: