0

I am new to angular and it seems very interesting

I am creating a template for a promotional page and struggling to understand what is causing an issue on it - half of the script stopped working...

My fiddle is in here see > fiddle example

or Plunker

I have working example without route...

Can you advice me how to fix this issue please

Danila Belov
  • 83
  • 10

1 Answers1

0

First of all, i'd suggest you to separate your project to different files based on best practises

Secondly, 'config, controller, factory' etc are methods of angular.module object. So you need to retrieve it first like

angular.module('<moduleName>').config(...) 

or use some variable.

http://plnkr.co/edit/CK5R2cS7Zd9T9Kun9Epc?p=preview

Community
  • 1
  • 1
Egor
  • 36
  • 4
  • thank you for explanation and for examples. my original plan was to structure into modules but I ran into problem... – Danila Belov Aug 12 '14 at 13:22