Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,182,410 members, 7,917,280 topics. Date: Saturday, 10 August 2024 at 09:52 PM

Help With This Angular Error - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Help With This Angular Error (979 Views)

Please Review The SPA I'm Building With Angular / Free PHP, Node js ,Mongo db, Angular And C# Proje Source Code With Documentation / Native Script ( Angular And Ionic) (2) (3) (4)

(1) (Reply) (Go Down)

Help With This Angular Error by paranorman(m): 5:16pm On Dec 26, 2018
Angular version is 1.7.5

Used 1.6.x before and never had to deal with this problem. Had hard disk problem so I had to download the 1.7.5

Re: Help With This Angular Error by makavele2: 7:12pm On Dec 26, 2018
the anti-sp.a.m b.o.t ban.ned by earlier handle, i wonder . .

well the problem is your syntax, it is flawed. since html5 you dont need "text/javascript" type again. just say <script> it will understand
also try to add your js resources at the footer instead of header. to optimize for speed. you can always use visibility function
to defer page rendering until all resources are loaded.
Also next type, attach codes via notepad, it was a pain to type all. Here you go:

Re: Help With This Angular Error by paranorman(m): 8:50pm On Dec 26, 2018
makavele2:
the anti-sp.a.m b.o.t ban.ned by earlier handle, i wonder . .

well the problem is your syntax, it is flawed. since html5 you dont need "text/javascript" type again. just say <script> it will understand
also try to add your js resources at the footer instead of header. to optimize for speed. you can always use visibility function
to defer page rendering until all resources are loaded.
Also next type, attach codes via notepad, it was a pain to type all. Here you go:


I am familiar with all what you wrote there, there is even an angular directive to defer page rendering until the onload event is completed. I am really concerned about the errors. I am working locally. So, why is 'anugular' undefined?

Re: Help With This Angular Error by makavele2: 9:36pm On Dec 26, 2018
^ Very well then. I wish I had enough time to type a lot.
90% of the time, syntax error.
10% of the time, running the event before it is loaded.

p.s.: Try to refactor your codes; it gives headache at first glance.
You are repeating stuffs not needed.
Re: Help With This Angular Error by paranorman(m): 9:39pm On Dec 26, 2018
Figured it out: the angularjs file I downloaded is incomplete i think, version 1.6.6 worked out just fine. Been a dataObj is json format, didn't initialize it properly as an object. Thanks.
Re: Help With This Angular Error by makavele2: 9:43pm On Dec 26, 2018
Assignment for you:

Try to run the project again verbatim as your first post . . but use CDN instead . .
Tell if it works or not . . I used CDN on 1.7.5 with your codes verbatim and it didn't work . . .
So I am wondering why you mentioned a failed or incomplete download.
Re: Help With This Angular Error by paranorman(m): 10:16pm On Dec 26, 2018
makavele2:
Assignment for you:

Try to run the project again verbatim as your first post . . but use CDN instead . .
Tell if it works or not . . I used CDN on 1.7.5 with your codes verbatim and it didn't work . . .
So I am wondering why you mentioned a failed or incomplete download.

I will, and revert back

(1) (Reply)

I Need Someone To Help Me With Stripe Form Automation / Is It True That Programmers Don't Have Time For Themselves Or Family? / How Long Did It Take You To Get Good At Javascript?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 12
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.