Wrox Programmer Forums
|
BOOK: Professional AngularJS
This is the forum to discuss the Wrox book Professional AngularJS by Valeri Karpov, Diego Netto; ISBN: 978-1-118-83207-3
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional AngularJS section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 30th, 2017, 03:56 PM
Registered User
 
Join Date: Jun 2017
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default The first controller

The introduction to the book (Page xxvi - xxvii):
"HelloController" gets used twice (once for English & once for Spanish)...;

Suppose I need the variable 'user', but I need it in Spanish & not in English or vice versa...;

In AngularJS Up & Running... You'd have something like the following:
ng-controller="HelloController as ctrl"

& then I'd have ctrl.user

Thank you in advance!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 4 controller is not in /controller folder jkacher BOOK: Professional ASP.NET MVC 5 1 October 31st, 2014 12:53 AM
Controller and Views davecarroll BOOK: Professional ASP.NET Design Patterns 2 March 2nd, 2011 03:16 PM
Shouldn't they be in a controller? phpcoder101 BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 2 November 6th, 2009 05:24 PM
controller to controller tigransh Spring 1 November 11th, 2006 12:48 AM
throwaway controller mmasters BOOK: Professional Java Development with the Spring Framework 0 June 27th, 2006 10:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.