angular js magnets