These are chat archives for spring-guides/tut-spring-security-and-angular-js

12th
Jan 2015
Dave Syer
@dsyer
Jan 12 2015 08:22
@tspaeth Thanks. WHat do you mean about the missing script include?
In the basic/README.md? (I see <script src="js/angular-bootstrap.js" type="text/javascript"></script>)
Dave Syer
@dsyer
Jan 12 2015 11:33
In your PR you said "For a normal AngularJS application, there is no need to include a separate jQuery file as AngularJS comes with its own adaption called jqLite".
Do we have a not-normal angular application?
So we need our own jQuery because of Bootstrap?
Thorsten Späth
@tspaeth
Jan 12 2015 11:55
Ah, ok. On the README.md - question. Okay, what wasn't really clear to me is, that angular-bootstrap.js is a concat of all library files. hmmm... For a beginner, that is something that looks a bit strange I guess.
Or it should be pointed out perhaps that one should just take a look at wro.xml which libraries are included
Dave Syer
@dsyer
Jan 12 2015 11:56
Angular JS (and Twitter Bootstrap) are included at the bottom of the <body>
Thorsten Späth
@tspaeth
Jan 12 2015 11:57
and Yes, there is in general no need to have a jQuery included for AngularJS-applications. It is only in your example application because the plain bootstrap.js relies on jQuery AFAIK.
Dave Syer
@dsyer
Jan 12 2015 11:57
This is when discussing the index.html right? (Before wro4j has been mentioned).
OK, I can change your comment to make that clearer.
Thorsten Späth
@tspaeth
Jan 12 2015 11:58
that's why there is a project from some angular-guys in the "angular-ui" github module
to get rid of all jQuery-style-JS-Code/coding and use the angular-style directive etc. pp.
Dave Syer
@dsyer
Jan 12 2015 11:58
You mentioned that already? (The angular bopotstrap thing?)
Thorsten Späth
@tspaeth
Jan 12 2015 11:59
yeah, was just an answer to your question 25 mins ago :)
Dave Syer
@dsyer
Jan 12 2015 11:59
OK.
I'll clarify that
Thorsten Späth
@tspaeth
Jan 12 2015 12:00
And if I just put away my "coming from a java perspective project" glasses, in some point of time - yes it is a bit not-normal when you compare this tutorial with all the other plain AngularJS introductions as they might only include / refer to the angular.min.js - file etc. instead of a combined, customized JS-library file.
woops. next meeting. bbl.
Dave Syer
@dsyer
Jan 12 2015 12:01
Thanks
Dave Syer
@dsyer
Jan 12 2015 12:19
I'm going to publish the first 2 parts of the blog
We can always tweak the text later if you have more comments.
Thorsten Späth
@tspaeth
Jan 12 2015 12:19
okay. (re)
I'll read the second part this evening. I'll have time in the Hotel :)

<blockquote class="twitter-tweet" lang="en"><p>New blog on using <a href="https://twitter.com/angularjs">@angularjs</a> with <a href="https://twitter.com/SpringSecurity">@SpringSecurity</a> <a href="https://t.co/GpGTe6LNP7">https://t.co/GpGTe6LNP7</a> (first of a series)</p>— Dave Syer (@david_syer) <a href="https://twitter.com/david_syer/status/554615363242328064">January 12, 2015</a></blockquote>

<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

Thorsten Späth
@tspaeth
Jan 12 2015 12:27
:-)
Thorsten Späth
@tspaeth
Jan 12 2015 12:39
Just adding to the "standard" question: One of the most prominent templates is this one: https://github.com/angular/angular-seed/blob/master/app/index.html - anyway even that is already containing too much for a tutorial level, but in general you see that there are only the plain angular-JS-files being added
Thorsten Späth
@tspaeth
Jan 12 2015 14:44
@dsyer FYI - your article has already found it's way into the main Google+ group for AngularJS (38k members)... so expect feedback :clap:
Dave Syer
@dsyer
Jan 12 2015 15:25
Cool
I noticed that Angular News retweeted some spam
Not very impressive. But maybe that's not the one that people follow.
William Gorder
@wgorder
Jan 12 2015 16:37
Nice work Dave. I went to your talk at s2gx and this is a nice follow up to fill in the gaps. This oauth stuff takes some getting used to :)
Dave Syer
@dsyer
Jan 12 2015 17:21
Thanks. OAuth2 blog is Part V (so publishing next week probably). Feel free to contribute via this repo.
Thorsten Späth
@tspaeth
Jan 12 2015 23:59
@dsyer as proposed… find my remarks on the second tutorial (plus some typo fixes :-) ):
tspaeth/spring-security-angular@9108c3c