-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recipes & Plugins #149
Comments
Will there be documentation on how to write these recipes? I'd love to chip in with the localization, and others. |
Hi @shiruken1 For now, you can just create a new issue or comment here.. You can write it in Markdown comment and I'll port it to the relevant documentation page 😄 |
@jadjoubran Should I paste the contents of the files here, or does this link suffice? Localization The main components are:
Translate.config.js will automatically try to load the name of the state with the .json extension, without the "app." prefix. For example, if you've clicked/loaded the login page, and it's state is defined as app.login in the routes.js file, angular-translate will look for "public/lang/en/login.json" When using it from a blade view (for example, when emailing something), all you'll need to code is:
Translations::translate(), in this use case, will look for the EMAIL_GREETING key "public/lang/en/email.json" @jadjoubran Let me know if I should include anything else! |
Thanks @shiruken1 |
|
https://github.com/jadjoubran/laravel-angular-recipes So I thought about starting with an easy way (github repo for instance) and then once we have a lot of recipes and other features such as search and voting (etc.) are required, I will develop a separate page/website Let me know what you think! 😄 |
As forecasted on the trello board this starter requires some kind of recipes.
After giving it some thought, it seems that what we might need is the following:
Recipes
Recipes would allow you to achieve common tasks by following a set of simple instructions. For example #147 and #148
Show validation messages in forms:
npm install angular-messages
add module to
main.js
link to angular-messages docs
Internationalization for your app:
npm install angular-translate
add module to
main.js
link to angular-translate docs
Plugins
Plugins are also not included out of the box in the repository, and allow you to follow a set of installation steps (usually involving your backend and/or front-end).
Check out the
plugins
column on the trello board for examples.Another reason why I'm thinking of such approach, is that this repository does not intend to depend on way too many unused packages. Even if it was a font package, we don't include material-design-icons out of the box, because some users might be used to font-awesome (and so on..).
For now, it seems that recipes are defintely needed whereas the exact use cases of plugins is still vague.. So I'll probably start with recipes as of version 3.1
The best place for recipes, would probably be the documentation
I'd love to get feedback on this 😄
The text was updated successfully, but these errors were encountered: