Skip to main content

AngularJS by Example - My new book on AngularJS

For some time now i have been blogging on my corporate blog instead of my personal one. But this is something that i should share on my personal blog too as it is big :)

I have a book out there "AngularJS by Example"! Published by Packt this book targets beginners to intermediate audience.

Head over to my blog post here to learn more about the book. 

You can also checkout and buy the book on Packt website.

Happy reading!

Comments

Eric said…
Hi Chandermani
Eric said…
Just reading and practicing your book for a couple of days and already one question:
Nowhere I can't refer to "well lead" class definition (called in 3rd line of code in p.13)
Trimming name down to 'well' does not change anything on Bootstrap dressing of the paragraph.
I surely missed something.
Eric
chandermani said…
Hi Eric, "well" and "lead" are classes defined in bootstrap.css, that have been included in the head section (see page 11). "well" gives the inset feeling and "lead" bold. But these are just style elements nothing much to do with the working of the app.
Hope you have a great time reading the rest of the book :)
Eric said…
Thank you fo your fast answer.
I don't know so much of Bootstrap so all is clear now.
I can resume my reading :)

Regards.
chandermani said…
You are right Ashish, the controller as syntax is far better than the above approach, as it avoid unnecessary coupling between parent and child views.
Sergio Esteban Cardenas said…
Hey there
First of all , thanks for the article . I have a question about your code
I assuming that your are modifing the global.asax form your MVC project, because you're using
typeof(MvcApplication)
is viable to set up the resolver in that file?
what if I want to set the resolver in the global.asax form WebApi Project?
is it valid?

best
Sergio
Frank Baresich said…
Hi,

I am new to coding and I bought pre-release of Angular2 by Example.
I am learning a lot. However, the code is not available at Packtpub.
The code I got from gethub only works for guess the number.

Can you fix that?
Also, when do you estimate the book will be released?
I may have to buy a different book if it is a long way off.

Thanks,

Popular posts from this blog

Caching Images downloaded from web on Windows Phone Isolated storage

I was helping on a Windows Phone application where the requirement was to cache the images the phone downloads on the isolated storage for offline viewing. I wanted a solution which was simple and as transparent as possible. While researching I found  someone wrote a Silverlight converter for loading images from isolated storage. Taking that as a base I created a converted which can Load image from web (http + https), and persist it to isolated storage. In case of network connectivity issues can load the same image from isolated storage. It does that by mapping the http url to a isolated storage location. In case the network is down and the image is neither there in cache, loads a default image, passed as parameter to converter. Here is the gist for the implementation. To use the converter Import the name space. Declare the converter as resource. Set the Image Source Property to use this converter like this 

Integrating ASP.Net MVC with AngularJS

We recently released a Project Template for ASP.Net MVC and AngularJS here and here . I did a follow up post detailing how the project template has been setup and how to make AngularJS and MVC play well together on my company blog . If you are interested in understanding how the template works head over to my blog post and read it!

IIS Url Rewrite and HTTP POST data

If you play around with IIS Url Rewriting rules and try to do redirects on an HTTP POST you loose your POST data. To make sure you get the post data you have to set the `redirectType` to `Temporary` within your rules. So the action configuration looks like this <action redirectType=" Temporary " type="Redirect" url="http://{HTTP_HOST}{REQUEST_URI}"> </action> You may think what scenario warrant a POST request redirect. We faced one such scenario while doing SSO with a federated Identity Provider (IP)  such as Google, Azure AD. In federated authentication scenario once the user is authenticated by the IP, it redirects back to your site with claim tokens in a POST request over secure channel (https). In our case we wanted to redirect to user back http after receiving the request. But any redirects were causing loss of token. By doing a 307 (Temporary) redirect we were able to preserve the post data.