Visual studio feeds

All Visual Studio blogs in one place

Subscribe

Enter your email address:

Delivered by FeedBurner

Increase your website traffic with Attracta.com

Google+

Contact

Email:
Subject:
Message:
Anti-spam: How many eyes has a typical person?

Follow us on FB

Search

Creating Custom AngularJS Directives Part 4 - Transclusion and Restriction

AddThis Social Bookmark Button
  Creating Custom AngularJS Directives Series The Fundamentals Isolate Scope Isolate Scope and Function Parameters Transclusion and Restriction (this post)
In Part 3 of this series I introduced how an isolate scope local property defined in a directive can be used to pass parameters to external functions (something that’s a bit tricky at first glance but easy once you know the process). In this post I’ll continue the series on building custom directives
and discuss “transclusion” and how it can be used to add flexibility to directives.   Restriction in Directives

Directives can be defined in HTML as elements, as an attribute of an element, as a CSS class, or as a comment. How do you restrict how your custom directive can be used though? To restrict how and where a directive can be used you use the restrict property. It accepts the following values:

Restriction Description     E

Windows Phone 8.1 Update 1

AddThis Social Bookmark Button
After an shamefully and incredibly large amount of vacations... let's go back to some blogging ;-)

Windows Phone 8.1 Update 1 (WP 8.2 would have been easier, no?) came out earlier this month, and offers some nice new features, among them is Live Folders for your start screen:
See that in in action:

The Incremental Architect’s Napkin - #5 - Design functions for extensibility and readability

AddThis Social Bookmark Button
Originally posted on: http://geekswithblogs.net/theArchitectsNapkin/archive/2014/08/24/the-incremental-architectrsquos-napkin---5---design-functions-for.aspx The functionality of programs is entered via Entry Points. So what we´re talking about when designing software is a bunch of functions handling the requests represented by and flowing in through those Entry Points. Designing software thus consists of at least three phases: Analyzing the requirements to find the Entry Points and their signatures Designing the functionality to be executed when those Entry Points get triggered Implementing the functionality according to the design aka coding I presume, you´re familiar with phase 1 in some way. And I guess you´re proficient in implementing functionality in
some programming language. But in my experience developers in general are not experienced in going through an explicit phase 2. “Designing functionality? What´s that supposed to mean?” you might already have thought. Here´s my definition: To design functionality (or functional design for short) means thinking about… well, functions. You find a solution for what´s supposed to happen when an Entry Point gets triggered in terms of functions. A conceptual solution that is, because those functions only exist in your head (or on paper) during this phase. But you may have guess that, because it´s “design” not “coding”. And here is,...(Read whole news on source site)

Smarter Project References

AddThis Social Bookmark Button
Sometimes the simple act of adding a project or assembly reference results in multiple subsequent attempts to fix the build because of the myriad indirect references that those depend on in turn, and which you are forced to add. Some other times, you just wish you were able to remove all those external projects that clutter the solution and slow down VS, but you need the project references for those tough debugging times. Welcome to Smarter Project References! If you want to go straight to the best thing to happen to MSBuild since Shared Projects (wait, that wasn’t long ago at
all…), just install this package on your projects: Install-Package SmartReferences Indirect Reference Annoyances This problem manifests itself pretty easily and I’m sure we’ve all faced this issue at some point or another. A very simple (hypotetical) scenario where this happens is: You have a shared MVVM project that has a base ViewModel class which is really awesome, since it does some logging for you via a log4net ILogger protected property it exposes, and also uses an Autofac type for doing lazy composition with metadata (or whatever). You add that to your solution. You create the new UI project, and reference the nice MVVM library you created. Next,...(Read whole news on source site)

How to take screenshot in Moto G Android Phone ?

AddThis Social Bookmark Button
Taking screenshot is pretty easy in Moto G Android phone . You can actually do it without any apps and the screenshot feature is available natively in the Moto G. How to take screenshot in Moto G Android Phone ? To take screenshot on Moto G device , press and hold the “Power” button and “Volume down” key at the same time for around 3 seconds . This will take the screenshot of the current screen and save the screenshot in the screenshot folder in your Gallery.

How to change default apps in Android Device (Moto G)?

AddThis Social Bookmark Button
This tutorial will explain in simple steps on how the users can change the default apps on your android phone (Android v 4.4.4) . The Android operating system comes with many default apps . There are times when you would have installed multiple apps which can support opening the similar file types . For example , you can have multiple apps on your android phone which can open the mp4 files. In the above case , the “Complete Action Using” option is shown to the user with the options “Always” and “Just Once” . Selecting the “Just Once” means that
you will be asked next time again when you launch the similar file and provides an perfect solution if the users would like to switch between apps. The “Always” option will set the app selected as the new default app. How to Clear the default app settings in Android Device (Moto G)? To rest the default app settings , navigate to Settings screen and then select Apps -> All . Select the app that you wish to unset the app as the default app. In the App Info screen , Click the “Clear defaults” button found under the “Launch by...(Read whole news on source site)

Free E-Book from APress - Platform Embedded Security Technology Revealed

AddThis Social Bookmark Button
Originally posted on: http://geekswithblogs.net/TATWORTH/archive/2014/08/23/free-e-book-from-apress---platform-embedded-security-technology-revealed.aspxAt  http://www.apress.com/9781430265719, APress are providing a free E-Book - Platform Embedded Security Technology Revealed. “Platform Embedded Security Technology Revealed is an in-depth introduction to Intel’s security and management engine, with details on the security features and the steps for configuring and invoking them. It's written for security professionals and researchers; embedded-system engineers; and software engineers and vendors.”

APress Deal of the Day 23/Aug/2014 - Pro Windows 8 Development with HTML5 and JavaScript

AddThis Social Bookmark Button
Originally posted on: http://geekswithblogs.net/TATWORTH/archive/2014/08/23/apress-deal-of-the-day-23aug2014---pro-windows-8.aspxToday’s $10 Deal of the Day from APress at http://www.apress.com/9781430244011 is Pro Windows 8 Development with HTML5 and JavaScript. “Apps are at the heart of Windows 8, bringing rich and engaging experiences to both tablet and desktop users. Windows 8 uses the Windows Runtime (WinRT), a complete reimagining of Windows development that supports multiple programming languages and is built on HTML5, CSS and JavaScript. These applications are the future of Windows development and JavaScript is perfect language to take advantage of this exciting and flexible environment.”

AngularJS Lifetime Management, Lazy-Loading, and other Advanced DI Techniques

AddThis Social Bookmark Button
One aspect of Angular that I love is it’s dependency injection. Contrary to some criticisms I’ve read, I find it is extremely flexible and powerful enough to address the demands of enterprise line of business apps. I discussed the general benefits of DI in Dependency Injection Explained and specifically Angular’s implementation using Providers, Services, and Factories and even aspect-oriented interception/decoration. In this post, I address some other features common to advanced Inversion of Control containers, namely lazy-loading, lifetime management, and deferred creation/resolution. Lazy-Loading Lazy-loading simply refers to the late instantiation of objects when you
need them. Many dependency injection systems will build-up a component the first time it is recognized as a dependency, but in some cases you may not want to instantiate the component until later in the application lifetime. In Angular, the perfect example is when you are setting up a behavior in the configuration pass that references components that haven’t been created yet. Let’s assume you want to intercept the built-in $log service so that it stores entries on the $rootScope. I don’t recommend this but it works for a simple, contrived example. To intercept, you reference $provide in the configuration...(Read whole news on source site)

Home